From 80e0bcf031bce9e06888b1c179cc09ed13dc5c98 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 31 Jul 2024 14:28:40 +0800 Subject: [PATCH] fix: nix path --- modules/base.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/base.nix b/modules/base.nix index be45478f..9f1423af 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -121,4 +121,6 @@ # make `nix repl ''` use the same nixpkgs as the one used by this flake. # discard all the default paths, and only use the one from this flake. nix.nixPath = lib.mkForce ["/etc/nix/inputs"]; + # https://github.com/NixOS/nix/issues/9574 + nix.settings.nix-path = lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; }