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:
parent
205b12d8b7
commit
4942a7d08a
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue