devshell: Update repl command for newer Nix

This commit is contained in:
Jack O'Sullivan 2023-10-31 14:38:51 +00:00
parent 08bdc5def8
commit db3e6e585d
2 changed files with 2 additions and 8 deletions

View File

@ -9,13 +9,7 @@ in
name = "repl"; name = "repl";
category = "utilities"; category = "utilities";
help = "Open a `nix repl` with this flake"; help = "Open a `nix repl` with this flake";
command = command = "nix repl .#";
''
tmp="$(mktemp --tmpdir repl.nix.XXXXX)"
echo "builtins.getFlake \"$PRJ_ROOT\"" > "$tmp"
nix repl "$tmp" || true
rm "$tmp"
'';
} }
{ {
name = "home-link"; name = "home-link";

View File

@ -12,7 +12,7 @@ in
NIX_USER_CONF_FILES = toString (pkgs.writeText "nix.conf" 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://nix-cache.nul.ie https://cache.nixos.org
substituters = https://cache.nixos.org substituters = https://cache.nixos.org
trusted-public-keys = ${concatStringsSep " " lib.my.nix.cacheKeys} trusted-public-keys = ${concatStringsSep " " lib.my.nix.cacheKeys}