From 674966001be47eee1a0986085f2ccb1b2015dc3b Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 2 May 2022 00:14:06 +0200 Subject: [PATCH] Auto-upgrade the system --- configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configuration.nix b/configuration.nix index 90e403b..59d2ed2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -133,6 +133,20 @@ in { nix.nixPath = let path = toString ./.; in [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=${path}/configuration.nix" ]; + # Auto-upgrade the system + system.autoUpgrade = { + enable = true; + dates = "22:30"; + flake = "/home/coolneng/Projects/panacea"; + flags = [ + "--update-input" + "agenix" + "--update-input" + "nixpkgs" + "--commit-lock-file" + ]; + }; + # Import other configuration modules imports = [ ./modules/hardware-configuration.nix