summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-01-16 15:03:49 +0100
committerMel <mel@rnrd.eu>2026-01-16 15:03:49 +0100
commit8e6c980c9548ec0d5e7c200a760121a824b6d47d (patch)
tree26c159459a5f6d041eff25096a92262bb757089c /modules
parentb637a518646ae2147403f01bd9ee250381bd8de0 (diff)
downloadnetwork-8e6c980c9548ec0d5e7c200a760121a824b6d47d.tar.zst
network-8e6c980c9548ec0d5e7c200a760121a824b6d47d.zip
Nix/NixOS shortcut script `nx`
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
-rw-r--r--modules/home/common.nix8
1 files changed, 8 insertions, 0 deletions
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
+ ];
}