aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2023-09-09 21:58:56 +0200
committerDaniel Jankowski <daniel.jankowski@rub.de>2023-09-09 21:58:56 +0200
commit0bcff13681c9f3c7ec455ccb666afcd407efba89 (patch)
treec8953a84d3e81236872ace31c76841307fb095a0 /README.md
parentchore: remove module (diff)
downloadsl0pstatus-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.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/README.md b/README.md
index 914bd14..578471c 100644
--- a/README.md
+++ b/README.md
@@ -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.