diff --git a/hosts/common/global/base.nix b/hosts/common/global/base.nix index dd66312..4f4dc2e 100644 --- a/hosts/common/global/base.nix +++ b/hosts/common/global/base.nix @@ -7,6 +7,11 @@ pkgs, ... }: +let + repoDomain = "thearcticcircle.ddns.net"; + repoPath = "git/WinterEkisha/nix-config"; + repoBranch = "main"; +in { nix = { settings = { @@ -38,6 +43,28 @@ networking.firewall.enable = true; time.timeZone = "America/Los_Angeles"; + + system.autoUpgrade = { + enable = true; + #flake = "git+https://${repoDomain}/${repoPath}?ref=${repoBranch}#${config.networking.hostName}"; #FIXME + flake = "git+https://${repoDomain}/${repoPath}?ref=experimental#${config.networking.hostName}"; + flags = [ + "--refresh" + ]; + dates = "03:00"; + randomizedDelaySec = "30min"; + allowReboot = true; + rebootWindow = { + lower = "02:00"; + upper = "05:00"; + }; + }; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; # --- File Manager --- xdg.mime.enable = true;