refactor(buildClan): move modules into 'forName' and import the correct core module depending on class
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user