diff options
| author | Mel <mel@rnrd.eu> | 2026-01-14 18:31:45 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-01-14 18:31:45 +0100 |
| commit | 20e85ed56ef0d73f523c1c9bbe7bf2fe1659c2db (patch) | |
| tree | 67d82003a975d551c718f21bcf54c44c8abf201d /modules | |
| parent | 7c365fc1aaf2fc6078ed0c28a632d6c68726d2e1 (diff) | |
| download | minerals-20e85ed56ef0d73f523c1c9bbe7bf2fe1659c2db.tar.zst minerals-20e85ed56ef0d73f523c1c9bbe7bf2fe1659c2db.zip | |
Nix/NixOS shortcut script `nx`
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/home/common.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/home/common.nix b/modules/home/common.nix index 52cdf11..0bbb68c 100644 --- a/modules/home/common.nix +++ b/modules/home/common.nix @@ -1,5 +1,9 @@ -{ ... }: +{ pkgs, ... }: +let + # a small useful script with common nix+nixos commands, invoked with `nx` + nx-script = pkgs.writeShellScriptBin "nx" (builtins.readFile ../../scripts/nx.sh); +in { imports = [ ../foundation/home @@ -56,4 +60,8 @@ home.sessionPath = [ "$HOME/.local/share/JetBrains/Toolbox/scripts" ]; + + home.packages = [ + nx-script + ]; } |
