From 56ee6255b4d25e4d8a99f444852c27b5e14c57d1 Mon Sep 17 00:00:00 2001 From: buffet Date: Sun, 5 May 2024 22:32:10 +0200 Subject: [PATCH] feat: auto upgrade ami --- hosts/ami/default.nix | 1 + hosts/ami/upgrade.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 hosts/ami/upgrade.nix diff --git a/hosts/ami/default.nix b/hosts/ami/default.nix index 08145d9..a03b0a3 100644 --- a/hosts/ami/default.nix +++ b/hosts/ami/default.nix @@ -17,6 +17,7 @@ ./forgejo.nix ./murmur.nix ./msmtp.nix + ./upgrade.nix ./website.nix ../../users/maintainer diff --git a/hosts/ami/upgrade.nix b/hosts/ami/upgrade.nix new file mode 100644 index 0000000..97ee3ac --- /dev/null +++ b/hosts/ami/upgrade.nix @@ -0,0 +1,13 @@ +_: { + system.autoUpgrade = { + enable = true; + flake = "https://buffets.kitchen/chef/rice/archive/main.tar.gz#ami"; + dates = "minutely"; + + allowReboot = true; + rebootWindow = { + lower = "02:00"; + upper = "04:00"; + }; + }; +}