From 6ff64282772ad78d90598c57c871185a1ac1180f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sat, 17 Feb 2024 21:07:55 -0300 Subject: [PATCH] ghost: enabled automatic updates --- hosts/ghost/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/ghost/default.nix b/hosts/ghost/default.nix index 3d1afc8..040a093 100644 --- a/hosts/ghost/default.nix +++ b/hosts/ghost/default.nix @@ -28,6 +28,15 @@ identityPaths = [ "/root/.ssh/id_rsa" ]; }; + system.autoUpgrade = { + enable = true; + dates = "04:40"; + allowReboot = true; + operation = "switch"; + flags = [ "--update-input" "nixpkgs" "--no-write-lock-file" "-L" ]; + flake = "github:lelgenio/nixos-config#ghost"; + }; + system.stateVersion = "23.05"; # Never change this }