Flakes: Difference between revisions

imported>Jayward
m Fix typo 'attr' -> 'name'
imported>Monoidal
Enable unfree software: have to specify system
Line 565: Line 565:
To use nonfree software in a flake, add <code>nixpkgs</code> as an input in your flake and import it with the <code>allowUnfree</code> option:
To use nonfree software in a flake, add <code>nixpkgs</code> as an input in your flake and import it with the <code>allowUnfree</code> option:
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
pkgs = import nixpkgs { config = { allowUnfree = true; }; };
pkgs = import nixpkgs {
  system = "x86_64-linux";  # or something else
  config = { allowUnfree = true; };
};
</syntaxHighlight>
</syntaxHighlight>