diff --git a/lib/colmenaSystem.nix b/lib/colmenaSystem.nix index 54f37c06..fa8ad22a 100644 --- a/lib/colmenaSystem.nix +++ b/lib/colmenaSystem.nix @@ -28,6 +28,7 @@ in # but NIX_PATH is still used by many useful tools, so we set it to the same value as the one used by this flake. # Make `nix repl ''` use the same nixpkgs as the one used by this flake. environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}"; + nix.settings.nix-path = nixpkgs.lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; environment.sessionVariables.NIX_PATH = nixpkgs.lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; } ] diff --git a/lib/nixosSystem.nix b/lib/nixosSystem.nix index 4acadab3..ef7f7f68 100644 --- a/lib/nixosSystem.nix +++ b/lib/nixosSystem.nix @@ -22,6 +22,7 @@ in # but NIX_PATH is still used by many useful tools, so we set it to the same value as the one used by this flake. # Make `nix repl ''` use the same nixpkgs as the one used by this flake. environment.etc."nix/inputs/nixpkgs".source = "${nixpkgs}"; + nix.settings.nix-path = nixpkgs.lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; environment.sessionVariables.NIX_PATH = nixpkgs.lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; }