From 24f25ca3bbac6178fb50b4825ae0e7c99eadd09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Mon, 11 Nov 2024 10:27:54 +0100 Subject: [PATCH] use pureInputs and filter out nixos-configuration for nix registry --- modules/nix/link-inputs.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/nix/link-inputs.nix b/modules/nix/link-inputs.nix index 91387177..8860904a 100644 --- a/modules/nix/link-inputs.nix +++ b/modules/nix/link-inputs.nix @@ -1,12 +1,14 @@ { lib, - inputs, + pureInputs, ... }: let # Taken from https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/options.nix inherit (lib) filterAttrs mapAttrs'; - flakes = filterAttrs (name: value: (value ? outputs)) inputs; + flakes = filterAttrs ( + name: value: (value ? outputs) && (name != "self") && (name != "nixos-config") + ) pureInputs; nixRegistry = builtins.mapAttrs (name: v: { flake = v; }) flakes; in {