From 270c24e9f54a13979a8a95b6cae7af7c4ee2aa2b Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 3 Dec 2023 02:30:39 -0600 Subject: [PATCH] feat(luna): enable system auto upgrades at 5AM --- hosts/luna/modules/default.nix | 1 + hosts/luna/modules/system.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 hosts/luna/modules/system.nix diff --git a/hosts/luna/modules/default.nix b/hosts/luna/modules/default.nix index 930101b..79432cc 100644 --- a/hosts/luna/modules/default.nix +++ b/hosts/luna/modules/default.nix @@ -9,5 +9,6 @@ ./networking.nix ./programs.nix ./user.nix + ./system.nix ]; } diff --git a/hosts/luna/modules/system.nix b/hosts/luna/modules/system.nix new file mode 100644 index 0000000..30dcf32 --- /dev/null +++ b/hosts/luna/modules/system.nix @@ -0,0 +1,17 @@ +{ self, ... }: + +{ + system = { + autoUpgrade = { + enable = true; + dates = "05:00"; + allowReboot = true; + flake = self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "-L" + ]; + }; + }; +}