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;