From f6bf2e58d47eea1c503bb38733085daa1fdd4a4b Mon Sep 17 00:00:00 2001 From: joy Date: Tue, 9 Jul 2024 22:27:56 +0200 Subject: [PATCH] update --- modules/default.nix | 1 + modules/update/default.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/update/default.nix diff --git a/modules/default.nix b/modules/default.nix index f3e912b..a96de0f 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -12,5 +12,6 @@ ./syncthing ./gpg ./appimage + ./update ]; } diff --git a/modules/update/default.nix b/modules/update/default.nix new file mode 100644 index 0000000..3aa5bf7 --- /dev/null +++ b/modules/update/default.nix @@ -0,0 +1,17 @@ +{ ... }: + +{ + + system.autoUpgrade = { + enable = true; + flake = inputs.self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "-L" # print build logs + ]; + dates = "02:00"; + randomizedDelaySec = "45min"; + }; + +}