Auto-upgrade the system

This commit is contained in:
coolneng 2022-05-02 00:14:06 +02:00
parent 5b8bba9c63
commit 674966001b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 14 additions and 0 deletions

View File

@ -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