inline auto-update

This commit is contained in:
Sean Buckley 2021-03-29 20:21:02 -04:00
parent 79f6f28dd3
commit 5cc282d784
2 changed files with 11 additions and 15 deletions

View file

@ -1,11 +0,0 @@
{ ... }:
{
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
};
}

View file

@ -10,10 +10,17 @@ in
config = mkMerge [ config = mkMerge [
(mkIf (cfg == "server") (mkMerge [ (mkIf (cfg == "server") {
{ services.openssh.enable = true; } services.openssh.enable = true;
(import ./auto-update.nix { }) system.autoUpgrade = {
])) enable = true;
allowReboot = true;
};
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
};
})
(mkIf (cfg == "desktop-sway") (import ./sway.nix { inherit pkgs; })) (mkIf (cfg == "desktop-sway") (import ./sway.nix { inherit pkgs; }))
(mkIf (cfg == "desktop-gnome") (import ./gnome.nix { inherit pkgs; })) (mkIf (cfg == "desktop-gnome") (import ./gnome.nix { inherit pkgs; }))