diff options
Diffstat (limited to 'modules/scripts/nix-update/default.nix')
| -rw-r--r-- | modules/scripts/nix-update/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/scripts/nix-update/default.nix b/modules/scripts/nix-update/default.nix new file mode 100644 index 0000000..787265d --- /dev/null +++ b/modules/scripts/nix-update/default.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + ... +}: +let + inherit ((import ../lib.nix { inherit lib pkgs; })) mkScriptModule; + base = mkScriptModule { + name = "nix-update"; + path = ./script.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 + ]; + inherit config; + }; +in +{ + options = base.options; + config = base.moduleConfig; +} |
