Enable auto upgrades on desktop systems

This commit is contained in:
Andreas Zweili 2022-11-15 10:34:06 +01:00
parent 8d783100a1
commit fee8e5b8e5
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{ custom }: { ... }:
{
system.autoUpgrade = {
enable = true;
dates = "10:20";
flake = "/home/${custom.username}/.nixos";
flags = [
"--update-input"
"nixpkgs"
"--commit-lock-file"
];
};
}

View File

@ -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; })