nixos-config/modules/system/upgrades/default.nix

22 lines
581 B
Nix
Raw Normal View History

2024-08-24 11:13:25 +02:00
{ hostName, ... }:
2024-08-13 19:56:30 +02:00
{
2024-08-30 22:54:25 +02:00
nix.optimise.automatic = true;
nix.settings.auto-optimise-store = true;
nix.optimise.dates = [ "03:45" ];
system.autoUpgrade = {
enable = true;
dates = "04:00";
persistent = true;
flake = "github:Moe1369/nixos-config#${hostName}";
flags = [
"--update-input" "nixpkgs"
"--update-input" "home-manager"
"--update-input" "jovian"
"--update-input" "nix-flatpak"
"-L"
"--commit-lock-file"
];
2024-09-03 21:13:33 +02:00
allowReboot = false;
2024-08-30 22:54:25 +02:00
};
2024-08-13 19:56:30 +02:00
}