Flakes: Difference between revisions

imported>Gytis-ivaskevicius
No edit summary
imported>Gytis-ivaskevicius
Update repl.nix
Line 374: Line 374:
{ inherit flake; }
{ inherit flake; }
// flake
// flake
// builtins
// nixpkgs
// nixpkgs
// nixpkgs.lib
// nixpkgs.lib
Line 383: Line 384:


<syntaxHighlight>
<syntaxHighlight>
export __NIXOS_SET_ENVIRONMENT_DONE='' && nix repl $(source /etc/profile && echo $NIX_PATH | perl -pe 's|.*(/nix/store/.*-source/repl.nix).*|\1|')
source /etc/set-environment && nix repl $(echo $NIX_PATH | perl -pe 's|.*(/nix/store/.*-source/repl.nix).*|\1|')</syntaxHighlight>
</syntaxHighlight>


This will launch a repl with access to `nixpkgs`, `lib`, and the `flake` options in a split of a second.
This will launch a repl with access to `nixpkgs`, `lib`, and the `flake` options in a split of a second.