Automatic system upgrades: Difference between revisions

m Added filename and syntax highlighting
 
Line 9: Line 9:
For channel-based systems, use this configuration:
For channel-based systems, use this configuration:


{{file|auto-upgrade.nix|nix|<nowiki>
{{file|||<nowiki>
system.autoUpgrade = {
system.autoUpgrade = {
   enable = true;
   enable = true;
Line 16: Line 16:
   allowReboot = false;  # Set to true if you want automatic reboots
   allowReboot = false;  # Set to true if you want automatic reboots
};
};
</nowiki>|name=|lang=}}
</nowiki>|name=auto-upgrade.nix|lang=nix}}


<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.