Flakes: Difference between revisions
imported>Gytis-ivaskevicius Remove unecessary `\` |
imported>Gytis-ivaskevicius No edit summary |
||
Line 361: | Line 361: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
However, this won't be instant upon evaluation. Instead, if one puts: | However, this won't be instant upon evaluation if any file changes have been done since your last configuration rebuild. Instead, if one puts: | ||
<syntaxHighlight>nix.nixPath = let path = toString ./.; in [ "repl=${path}/repl.nix" "nixpkgs=${inputs.nixpkgs}" ];</syntaxHighlight> | <syntaxHighlight>nix.nixPath = let path = toString ./.; in [ "repl=${path}/repl.nix" "nixpkgs=${inputs.nixpkgs}" ];</syntaxHighlight> | ||
Line 379: | Line 379: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
(Don't forget to `git add repl.nix && nixos-reubild switch --flake "/etc/nixos#"`) | |||
Then one can run (or bind a shell alias): | |||
<syntaxHighlight> | <syntaxHighlight> | ||
Line 385: | Line 386: | ||
</syntaxHighlight> | </syntaxHighlight> | ||
This will launch a repl with access to `nixpkgs`, `lib`, and the `flake` options | This will launch a repl with access to `nixpkgs`, `lib`, and the `flake` options in a split of a second. | ||
== Enable unfree software == | == Enable unfree software == |