diff --git a/devshell/commands.nix b/devshell/commands.nix index 611240f..016782d 100644 --- a/devshell/commands.nix +++ b/devshell/commands.nix @@ -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"; diff --git a/devshell/default.nix b/devshell/default.nix index 0854241..249b856 100644 --- a/devshell/default.nix +++ b/devshell/default.nix @@ -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}