mirror of
https://github.com/thegeneralist01/config.git
synced 2026-05-30 08:37:01 +02:00
exclude bird
This commit is contained in:
parent
dc9740d867
commit
b68229b94a
4 changed files with 63 additions and 16 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue