6 lines
351 B
Plaintext
6 lines
351 B
Plaintext
% nix, crime
|
|
|
|
# Start a Nix repl with nixpkgs loaded from flake
|
|
$ flake: echo 'nixpkgs'
|
|
; We're doing \<nixpkgs\> here because otherwise it'll consider <nixpkgs> to be a variable, but there is no actual facility for escaping the brackets in current navi
|
|
NIX_PATH="nixpkgs=$(nix flake prefetch <flake> --json | jq -r .storePath)" nix repl '\<nixpkgs\>' |