diff --git a/nix/configuration/flake.nix b/nix/configuration/flake.nix index 32a272b6..85b6552e 100644 --- a/nix/configuration/flake.nix +++ b/nix/configuration/flake.nix @@ -101,10 +101,9 @@ ... }: let - repl_path = toString ./.; nix-self-repl = pkgs.writeShellScriptBin "nix-self-repl" '' source /etc/set-environment - nix repl "${repl_path}/repl.nix" "$@" + nix repl --expr 'builtins.getFlake "${self}"' ''; # If we wanted the current version of a flake then we'd just launch # nix repl @@ -136,10 +135,9 @@ ... }: let - repl_path = toString ./.; nix-self-repl = pkgs.writeShellScriptBin "nix-self-repl" '' source /etc/set-environment - nix repl "${repl_path}/repl.nix" "$@" + nix repl --expr 'builtins.getFlake "${self}"' ''; # If we wanted the current version of a flake then we'd just launch # nix repl diff --git a/nix/configuration/repl.nix b/nix/configuration/repl.nix deleted file mode 100644 index e21db83b..00000000 --- a/nix/configuration/repl.nix +++ /dev/null @@ -1,5 +0,0 @@ -let - flake = builtins.getFlake (toString ./.); - nixpkgs = import { }; -in -{ inherit flake; } // flake // builtins // nixpkgs // nixpkgs.lib // flake.nixosConfigurations