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"; + }; + +}