Fork 0
Cheatsheets for use with Navi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
351 B

% 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\>'