diff --git a/modules/auto-upgrade/default.nix b/modules/auto-upgrade/default.nix new file mode 100644 index 0000000..f9534ff --- /dev/null +++ b/modules/auto-upgrade/default.nix @@ -0,0 +1,13 @@ +{ custom }: { ... }: +{ + system.autoUpgrade = { + enable = true; + dates = "10:20"; + flake = "/home/${custom.username}/.nixos"; + flags = [ + "--update-input" + "nixpkgs" + "--commit-lock-file" + ]; + }; +} diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index a22718b..792f50a 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,6 +1,7 @@ { custom }: { pkgs, ... }: { imports = [ + (import "${custom.inputs.self}/modules/auto-upgrade" { inherit custom; }) (import "${custom.inputs.self}/modules/docker" { inherit custom; }) (import "${custom.inputs.self}/modules/droidcam" { inherit custom; }) (import "${custom.inputs.self}/modules/email" { inherit custom; })