From fe70a624305619714f8d4fb8aa73f43d5db28280 Mon Sep 17 00:00:00 2001 From: willifan Date: Sat, 6 Jul 2024 23:09:27 +0200 Subject: [PATCH] added autoupdate --- hosts/common/autoupdate.nix | 11 +++++++++++ hosts/common/default.nix | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 hosts/common/autoupdate.nix diff --git a/hosts/common/autoupdate.nix b/hosts/common/autoupdate.nix new file mode 100644 index 0000000..c5591ef --- /dev/null +++ b/hosts/common/autoupdate.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +{ + system.autoUpgrade = { + enable = true; + dates = "04:00"; + flake = "https://git.huwe.mooo.com/willifan/nix-config.git"; + persistent = true; + randomizedDelaySec = "5min"; + fixedRandomDelay = true; + }; +} \ No newline at end of file diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 636ca91..f8e78d1 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -1,4 +1,7 @@ { pkgs, ... }: { + imports = [ + ./autoupdate.nix + ]; system.stateVersion = "23.11"; } \ No newline at end of file