Flakes: Difference between revisions

Jopejoe1 (talk | contribs)
Marked this version for translation
Raboof (talk | contribs)
m fix link
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
'''Nix flakes''' is an [https://nixos.org/manual/nix/stable/contributing/experimental-Features.html experimental feature] that was introduced with Nix 2.4 ([https://nixos.org/manual/nix/unstable/release-notes/rl-2.4.html see release notes]).
'''Nix flakes''' is an [https://nixos.org/manual/nix/stable/development/experimental-features.html experimental feature] that was introduced with Nix 2.4 ([https://nixos.org/manual/nix/unstable/release-notes/rl-2.4.html see release notes]).


====Introduction==== <!--T:2-->
====Introduction==== <!--T:2-->
Line 48: Line 48:
<translate>
<translate>


=====Other Distros, with Home-Manager===== <!--T:10-->
====Other Distros, with Home-Manager==== <!--T:10-->


<!--T:11-->
<!--T:11-->
Line 59: Line 59:
<translate>
<translate>


=====Other Distros, without Home-Manager===== <!--T:13-->
====Other Distros, without Home-Manager==== <!--T:13-->


<!--T:14-->
<!--T:14-->
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>


Line 609: Line 616:
                 # use this variant if unfree packages are needed:
                 # use this variant if unfree packages are needed:
                 # unstable = import nixpkgs-unstable {
                 # unstable = import nixpkgs-unstable {
                 #  inherit system;
                 #  inherit prev;
                #  system = prev.system;
                 #  config.allowUnfree = true;
                 #  config.allowUnfree = true;
                 # };
                 # };