Flakes: Difference between revisions
m There was a small error in the commented out unstable overlay option, which enables unfree packages. Because the variable "system" wasn't in scope to be inherited, it didn't work as written in the same context. Inheriting prev and then assigning system from prev.system does work. |
→Input schema: Add information about cached flake inputs for nixos release channels. |
||
Line 141: | Line 141: | ||
</translate> | </translate> | ||
<code>inputs.nixpkgs.url = "github:NixOS/nixpkgs/<branch name>";</code> | <code>inputs.nixpkgs.url = "github:NixOS/nixpkgs/<branch name>";</code> | ||
Nixpkgs can alternatively also point to an url cached by the NixOS organization: | |||
<code>inputs.nixpkgs.url = "<nowiki>https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz</nowiki>";</code> | |||
In this example the input would point to the `nixpkgs-unstable` channel. | |||
<translate> | <translate> | ||