From 5866a2be8fe03b7023537b6b1a46311d493d2013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 6 Feb 2025 19:58:01 +0100 Subject: [PATCH] Add autoupgrade --- system/autoupgrade.nix | 9 +++++++++ system/default.nix | 1 + 2 files changed, 10 insertions(+) create mode 100644 system/autoupgrade.nix diff --git a/system/autoupgrade.nix b/system/autoupgrade.nix new file mode 100644 index 0000000..f50bb91 --- /dev/null +++ b/system/autoupgrade.nix @@ -0,0 +1,9 @@ +{ ... }: +{ + system.autoUpgrade = { + enable = true; + randomizedDelaySec = "1h"; + allowReboot = true; + flake = "git+https://git.t-juice.club/torjus/nixos-servers.git"; + }; +} diff --git a/system/default.nix b/system/default.nix index 97e95c7..123ef79 100644 --- a/system/default.nix +++ b/system/default.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ + ./autoupgrade.nix ./monitoring ./packages.nix ./nix.nix