devshell: Update repl command for newer Nix
This commit is contained in:
parent
08bdc5def8
commit
db3e6e585d
@ -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";
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user