devshell: Update repl command for newer Nix
This commit is contained in:
parent
08bdc5def8
commit
db3e6e585d
@ -9,13 +9,7 @@ in
|
||||
name = "repl";
|
||||
category = "utilities";
|
||||
help = "Open a `nix repl` with this flake";
|
||||
command =
|
||||
''
|
||||
tmp="$(mktemp --tmpdir repl.nix.XXXXX)"
|
||||
echo "builtins.getFlake \"$PRJ_ROOT\"" > "$tmp"
|
||||
nix repl "$tmp" || true
|
||||
rm "$tmp"
|
||||
'';
|
||||
command = "nix repl .#";
|
||||
}
|
||||
{
|
||||
name = "home-link";
|
||||
|
@ -12,7 +12,7 @@ in
|
||||
|
||||
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf"
|
||||
''
|
||||
experimental-features = nix-command flakes ca-derivations
|
||||
experimental-features = nix-command flakes ca-derivations repl-flake
|
||||
#substituters = https://nix-cache.nul.ie https://cache.nixos.org
|
||||
substituters = https://cache.nixos.org
|
||||
trusted-public-keys = ${concatStringsSep " " lib.my.nix.cacheKeys}
|
||||
|
Loading…
Reference in New Issue
Block a user