diff options
author | Linnnus <[email protected]> | 2024-07-31 17:56:50 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-07-31 17:56:50 +0200 |
commit | 9327f72096c94d9956a5e1c88f4891f8b8bceb7c (patch) | |
tree | 395916f7b7105eddcc63dc82c01eeb141025d860 /hosts | |
parent | 067aa5baf419711eb24c5f4081c692f15c5fec47 (diff) |
ahmed: Enable automatic upgrades
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/ahmed/configuration.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hosts/ahmed/configuration.nix b/hosts/ahmed/configuration.nix index a07cd87..541a109 100644 --- a/hosts/ahmed/configuration.nix +++ b/hosts/ahmed/configuration.nix @@ -3,6 +3,7 @@ { config, pkgs, + flakeInputs, ... }: { imports = [ @@ -83,6 +84,21 @@ # Listen for HTTP connections. networking.firewall.allowedTCPPorts = [80 443]; + # Automatic upgrades + system.autoUpgrade = { + enable = true; + flake = flakeInputs.self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "-L" # print build logs + ]; + dates = "02:00"; + randomizedDelaySec = "45min"; + allowReboot = true; + }; + + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It's perfectly fine and recommended to leave |