Flakes: Difference between revisions

imported>Jmatsushita
Propose new section on setting bash-prompt for nix develop
imported>Doronbehar
Importing packages from multiple channels: Show another way to apply overlays
Line 381: Line 381:
should make a package accessible through <syntaxHighlight>pkgs.unstable.package</syntaxHighlight>
should make a package accessible through <syntaxHighlight>pkgs.unstable.package</syntaxHighlight>
Same can be done with the NURs, as it already has an ''overlay'' attribute in the flake.nix of the project, you can just add <syntaxHighlight>nixpkgs.overlays = [ nur.overlay ];</syntaxHighlight>
Same can be done with the NURs, as it already has an ''overlay'' attribute in the flake.nix of the project, you can just add <syntaxHighlight>nixpkgs.overlays = [ nur.overlay ];</syntaxHighlight>
If the variable <code>nixpkgs</code> points to the flake, you can also define <code>pkgs</code> with overlays with:
<syntaxHighlight lang=nix>
pkgs = import nixpkgs { overlays = [ /*the overlay in question*/ ];
</syntaxHighlight>


== Getting *Instant* System Flakes Repl ==
== Getting *Instant* System Flakes Repl ==