From 8e6c980c9548ec0d5e7c200a760121a824b6d47d Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 16 Jan 2026 15:03:49 +0100 Subject: Nix/NixOS shortcut script `nx` Signed-off-by: Mel --- modules/home/common.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules') diff --git a/modules/home/common.nix b/modules/home/common.nix index e2f5c94..4eb0d56 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 { programs = { git = { @@ -38,4 +42,8 @@ zoxide = { enable = true; enableFishIntegration = true; }; }; + + home.packages = [ + nx-script + ]; } -- cgit 1.4.1