Enable system auto updates

This commit is contained in:
Joey Hafner 2024-12-31 10:49:00 -08:00
parent 9148672160
commit 85f7fc855a
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55

View File

@ -1,5 +1,5 @@
{ pkgs, lib, ... }: { { pkgs, lib, inputs, ... }: {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
programs.nix-ld = { programs.nix-ld = {
enable = true; enable = true;
@ -7,4 +7,15 @@
}; };
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
} system.autoUpgrade = {
enable = true;
flake = inputs.self.outPath;
flags = [
"--update-input"
"nixpkgs"
"-L"
];
dates = "04:00";
randomizedDelaySec = "30min";
};
}