From eaaa6c95465fdb1f0f4901aade20de3618e74522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Mon, 11 Nov 2024 10:28:36 +0100 Subject: [PATCH] remove nix registry if nix is disabled --- modules/nix/link-inputs.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nix/link-inputs.nix b/modules/nix/link-inputs.nix index 8860904a..9cbbe224 100644 --- a/modules/nix/link-inputs.nix +++ b/modules/nix/link-inputs.nix @@ -1,6 +1,7 @@ { lib, pureInputs, + config, ... }: let @@ -15,7 +16,7 @@ in nix.registry = nixRegistry; environment.etc = mapAttrs' (name: value: { name = "nix/inputs/${name}"; - value = { + value = lib.mkIf config.nix.enable { source = value.outPath; }; }) flakes;