From b04357c9de6c8d410a609d217482d8da1935c144 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 3 Mar 2024 03:53:13 +0000 Subject: [PATCH] nix.conf: dont ship NIX_PATH for light deploys it's like 150 MiB --- hosts/common/nix/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/common/nix/default.nix b/hosts/common/nix/default.nix index 1a718dc9..1720484c 100644 --- a/hosts/common/nix/default.nix +++ b/hosts/common/nix/default.nix @@ -53,8 +53,9 @@ # allow `nix-shell` (and probably nix-index?) to locate our patched and custom packages. # this is actually a no-op, and the real action happens in assigning `nix.settings.nix-path`. - nix.nixPath = [ + nix.nixPath = (lib.optionals config.sane.enableSlowPrograms [ "nixpkgs=${pkgs.path}" + ]) ++ [ # note the import starts at repo root: this allows `./overlay/default.nix` to access the stuff at the root # "nixpkgs-overlays=${../../..}/hosts/common/nix-path/overlay" # as long as my system itself doesn't rely on NIXPKGS at runtime, we can point the overlays to git