1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Add standard module path compatibility to extras/modules

This commit is contained in:
Gavin John 2024-12-06 16:56:26 -08:00
parent 205b12d8b7
commit 4942a7d08a

View file

@ -66,4 +66,11 @@ in
apply = mapAttrs (k: mapAttrs (addInfo k)); apply = mapAttrs (k: mapAttrs (addInfo k));
}; };
}; };
config = {
# Copy over to old nixosModules and hmModules attributes
flake = {
nixosModules = lib.optional (lib.hasAttr "nixos" lib.flake.modules) lib.flake.modules.nixos;
hmModules = lib.optional (lib.hasAttr "homeManager" lib.flake.modules) lib.flake.modules.homeManager;
};
};
} }