Automatic system upgrades: Difference between revisions

Dujo (talk | contribs)
Prioritize channel-based auto-upgrade config since it's the NixOS default; clarify flake vs channel differences
Bittner (talk | contribs)
Remove reference to deprecated flag in text
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
</nowiki>}}
</nowiki>}}


**Important:** Do not use `--update-input` or similar 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.


=== Flake-based systems ===
=== Flake-based systems ===
Line 32: Line 32:
   flake = inputs.self.outPath;
   flake = inputs.self.outPath;
   flags = [
   flags = [
    "--update-input"
    "nixpkgs"
     "--print-build-logs"
     "--print-build-logs"
   ];
   ];