1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 08:37:01 +02:00

exclude bird

This commit is contained in:
TheGeneralist 2026-03-15 08:07:51 +01:00
parent dc9740d867
commit b68229b94a
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
4 changed files with 63 additions and 16 deletions

View file

@ -13,12 +13,18 @@ let
# Collect modules from flake inputs with fallback handling
collectInputModules = packagePath:
let
getModule = input:
if hasAttrByPath packagePath input
getModule = name: input:
if name == "nix-openclaw" && packagePath == [ "overlays" "default" ] then
[]
else if hasAttrByPath packagePath input
then [ (getAttrFromPath packagePath input) ]
else [];
in
concatMap getModule (attrValues inputs);
concatMap (entry: getModule entry.name entry.value) (
mapAttrsToList (name: value: {
inherit name value;
}) inputs
);
# Collect platform-specific modules
@ -32,7 +38,7 @@ let
# Collect overlays from inputs
overlays = collectInputModules [ "overlays" "default" ];
overlayModule = {
nixpkgs.overlays = overlays;
};