From 20e85ed56ef0d73f523c1c9bbe7bf2fe1659c2db Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 14 Jan 2026 18:31:45 +0100 Subject: Nix/NixOS shortcut script `nx` Signed-off-by: Mel --- modules/home/common.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules') 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 + ]; } -- cgit 1.4.1