From c5a07ff3cb10a26b0682e4073fdf51357a92baf2 Mon Sep 17 00:00:00 2001 From: dadada Date: Sun, 22 Jan 2023 14:43:51 +0100 Subject: [PATCH] enable auto-deploy --- nixos/modules/admin.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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: {