Automatic system upgrades: Difference between revisions

Dwt (talk | contribs)
Flake-based systems: explain why --update-inputs nixpkgs doesn't work anymore and which bug to follow for resolutions.
Line 12: Line 12:
system.autoUpgrade = {
system.autoUpgrade = {
   enable = true;
   enable = true;
  flags = [
    "--print-build-logs"
  ];
   dates = "02:00";
   dates = "02:00";
   randomizedDelaySec = "45min";
   randomizedDelaySec = "45min";
   allowReboot = false;  # Set to true if you want automatic reboots
   allowReboot = false;  # Set to true if you want automatic reboots
};
};
</nowiki>}}
</nowiki>|name=|lang=}}


<strong>Important:</strong> Do not use flake-specific flags with channel-based systems, as they will cause the upgrade to fail silently.
<strong>Important:</strong> Do not use flake-specific flags with channel-based systems, as they will cause the upgrade to fail silently.