nixos-config/modules/system/upgrades/default.nix
Mohamed C. 294244864f
Some checks are pending
Flake.lock / build (push) Waiting to run
dont autoreboot
2024-09-03 21:13:33 +02:00

22 lines
581 B
Nix

{ hostName, ... }:
{
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"
];
allowReboot = false;
};
}