refactor(buildClan): move modules into 'forName' and import the correct core module depending on class

This commit is contained in:
Johannes Kirschbauer
2025-04-15 15:29:01 +02:00
parent d264e262bd
commit e68ab67112
2 changed files with 26 additions and 44 deletions

View File

@@ -1,6 +1,7 @@
{
name,
directory,
meta,
}:
{
_class,
@@ -20,6 +21,15 @@
]
);
}
(lib.optionalAttrs (_class == "nixos") {
clan.core.settings = {
inherit (meta) name icon;
inherit directory;
machine = {
inherit name;
};
};
})
# TODO: move into nixos modules
({
networking.hostName = lib.mkDefault name;