diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-09-09 21:58:56 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-09-09 21:58:56 +0200 |
| commit | 0bcff13681c9f3c7ec455ccb666afcd407efba89 (patch) | |
| tree | c8953a84d3e81236872ace31c76841307fb095a0 /README.md | |
| parent | chore: remove module (diff) | |
| download | sl0pstatus-0bcff13681c9f3c7ec455ccb666afcd407efba89.tar.gz sl0pstatus-0bcff13681c9f3c7ec455ccb666afcd407efba89.tar.xz sl0pstatus-0bcff13681c9f3c7ec455ccb666afcd407efba89.zip | |
chore: add documentation how to install with nix
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -31,6 +31,35 @@ You could also refer to the plugin guide from zellij, after downloading the bina Please ensure, that the configuration is correct. +## ❄️ Installation with nix flake + +Add this repository to your inputs and then with the following overlay to your packages. +Then you are able to install and refer to it with `pkgs.zjstatus`. When templating the +config file, you can use `${pkgs.zjstatus}/bin/zjstatus.wasm` as the path. + +```nix + inputs = { + # ... + + zjstatus = { + url = "github:dj95/zjstatus"; + }; + }; + + + # define the outputs of this flake - especially the home configurations + outputs = { self, nixpkgs, zjstatus, ... }@inputs: + let + inherit (inputs.nixpkgs.lib) attrValues; + + overlays = with inputs; [ + # ... + (final: prev: { + zjstatus = zjstatus.packages.${prev.system}.default; + }) + ]; +``` + ## ⚙️ Configuration Configuration can be performed in the layout file, when importing the plugin. Here's a short example. |
