From d0731500b3e5d2094a54f63da7c33b92742e37cb Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 12 Jun 2025 23:55:10 +0200 Subject: [PATCH] fix(nix_path): Use a constant name for the path It will be symlinked when deploying, which will render its behavior correct --- hive.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hive.nix b/hive.nix index 03e7843..98baaca 100644 --- a/hive.nix +++ b/hive.nix @@ -193,7 +193,9 @@ in nix = { # Set NIX_PATH to the patched version of nixpkgs - nixPath = [ "nixpkgs=${builtins.storePath sourcePkgs.path}" ]; + environment.etc.nixpkgs.source = builtins.storePath sourcePkgs.path; + nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ]; + optimise.automatic = true; gc = {