From c93fa389b15af802cad6f7bc7083852a79edad96 Mon Sep 17 00:00:00 2001 From: Felix Wittwer Date: Wed, 17 Nov 2021 14:29:20 +0100 Subject: [PATCH] Enable automatic upgrade --- birne/configuration.nix | 1 + modules/autoupdate.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 modules/autoupdate.nix diff --git a/birne/configuration.nix b/birne/configuration.nix index a476064..1c8bec8 100644 --- a/birne/configuration.nix +++ b/birne/configuration.nix @@ -12,6 +12,7 @@ + ]; # setup the NIX_PATH so modules from the repo found diff --git a/modules/autoupdate.nix b/modules/autoupdate.nix new file mode 100644 index 0000000..7152937 --- /dev/null +++ b/modules/autoupdate.nix @@ -0,0 +1,10 @@ +{ pkgs, config, ... }: + +{ + system.autoUpgrade = { + enable = true; + dates = "12:00"; + # might need to move this into the configuration of `birne`? + allowReboot = true; + }; +}