Flakes: Difference between revisions

imported>Ngkz
Importing packages from multiple channels: fix an example fails with undefined variable error
imported>Domenkozar
mNo edit summary
Line 355: Line 355:
Otherwise it's also possible to set the <code>nix develop</code> bash prompt system wide using the [https://nixos.org/manual/nix/unstable/command-ref/conf-file.html nix.conf option bash-prompt]. (On nixos I think it is set in <code>nix.extraOptions</code>)  
Otherwise it's also possible to set the <code>nix develop</code> bash prompt system wide using the [https://nixos.org/manual/nix/unstable/command-ref/conf-file.html nix.conf option bash-prompt]. (On nixos I think it is set in <code>nix.extraOptions</code>)  


== Pushing Flake inputs to Cachix ==
== Pushing Flakes to Cachix ==


Flake inputs can also be cached in the Nix binary cache!
https://docs.cachix.org/pushing#flakes
 
<syntaxHighlight lang=console>
$ nix flake archive --json \
  | jq -r '.path,(.inputs|to_entries[].value.path)' \
  | cachix push $cache_name
</syntaxHighlight>


== Build specific attributes in a flake repository ==
== Build specific attributes in a flake repository ==