diff --git a/nixos/modules/admin.nix b/nixos/modules/admin.nix index fcdf9f8..a271b4c 100644 --- a/nixos/modules/admin.nix +++ b/nixos/modules/admin.nix @@ -81,6 +81,13 @@ in security.sudo.wheelNeedsPassword = false; services.openssh.openFirewall = true; + system.autoUpgrade = { + enable = true; + flake = "github:dadada/nix-config.git#${config.networking.hostName}"; + allowReboot = true; + randomizedDelaySec = "45min"; + }; + users.users = mapAttrs (user: keys: {