From 57fdf25c46bbb76ccfad6ec2cf0d06cb337486b0 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 29 Dec 2023 16:54:33 +0800 Subject: [PATCH] fix: NIX_PATH --- lib/colmenaSystem.nix | 1 + lib/nixosSystem.nix | 1 + 2 files changed, 2 insertions(+) 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"; }