From 41bdeb88009dd232808edee9fc0e4ae94358d8d6 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 29 Aug 2026 02:02:23 +0530 Subject: refactor: moving script into modules that makes sense - instead of collecting all scripts into modules/scripts we are moving them to modules that makes sense (yazi-file-chooser.sh into yazi) --- modules/system/nix-update/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/system/nix-update/default.nix (limited to 'modules/system/nix-update/default.nix') diff --git a/modules/system/nix-update/default.nix b/modules/system/nix-update/default.nix new file mode 100644 index 0000000..13c15f6 --- /dev/null +++ b/modules/system/nix-update/default.nix @@ -0,0 +1,24 @@ +# Update NixOS and/or Home Manager flake configuration +{ + config, + lib, + pkgs, + ... +}: +let + inherit ((import ../../lib/script.nix { inherit lib pkgs; })) mkScriptModule; +in +mkScriptModule { + scope = [ "system" ]; + name = "nix-update"; + path = ./nix-update.sh; + description = "Update NixOS and/or Home Manager flake configuration\nRuns nix flake update and rebuilds the system"; + deps = [ + pkgs.git + pkgs.nix + config.programs.home-manager.package + pkgs.bash + ]; + completion.zsh = builtins.readFile ./nix-update.zsh; + inherit config; +} -- cgit v1.2.3