diff --git a/modules/common/neovim/config/toggleterm.lua b/modules/common/neovim/config/toggleterm.lua index bd011bc..42a9cd9 100644 --- a/modules/common/neovim/config/toggleterm.lua +++ b/modules/common/neovim/config/toggleterm.lua @@ -21,7 +21,7 @@ function TERM_TOGGLE() basicterminal:toggle() end -local nixpkgs = terminal:new({ cmd = "nix repl ''" }) +local nixpkgs = terminal:new({ cmd = "nix repl --expr 'import {}'" }) function NIXPKGS_TOGGLE() nixpkgs:toggle() end diff --git a/modules/common/shell/nixpkgs.nix b/modules/common/shell/nixpkgs.nix index d08c8be..61a36e2 100644 --- a/modules/common/shell/nixpkgs.nix +++ b/modules/common/shell/nixpkgs.nix @@ -13,7 +13,7 @@ ns = "nix-shell -p"; nsf = "nix-shell --run fish -p"; nsr = "nix-shell-run"; - nps = "nix repl ''"; + nps = "nix repl --expr 'import {}'"; nixo = "man configuration.nix"; nixh = "man home-configuration.nix"; nr = "rebuild-nixos";