nixos/system/autoupgrade.nix

16 lines
293 B
Nix

{config, ...}: let
flakeURL = config.nix.registry.nixos.to.url;
in {
system.autoUpgrade = {
enable = true;
flake = "git+${flakeURL}";
flags = [
"--update-input"
"nixpkgs"
"--no-write-lock-file"
"-L" # print build logs
];
dates = "02:00";
};
}