Flakes: Difference between revisions
imported>Jonringer m Link to nix manual for nix.conf values |
imported>Witchof0x20 Add alternative method to fast repl section |
||
Line 515: | Line 515: | ||
This will launch a repl with access to <code>nixpkgs</code>, <code>lib</code>, and the <code>flake</code> options in a split of a second. | This will launch a repl with access to <code>nixpkgs</code>, <code>lib</code>, and the <code>flake</code> options in a split of a second. | ||
An alternative approach to the above shell alias is omitting <code>repl</code> from <code>nix.nixPath</code> and creating a shell script: | |||
<syntaxHighlight lang=nix> | |||
environment.systemPackages = let | |||
repl_path = toString ./.; | |||
my-nix-fast-repl = pkgs.writeShellScriptBin "my-nix-fast-repl" '' | |||
source /etc/set-environment | |||
nix repl "${repl_path}/repl.nix $@ | |||
''; | |||
in [ | |||
nix-fast-repl | |||
]; | |||
</syntaxHighlight> | |||
== Enable unfree software == | == Enable unfree software == |