templates: allow specifying from flake-parts module

This commit is contained in:
Michael Hoang
2025-02-13 15:09:17 +07:00
parent 09f650dab0
commit 742040cd03
6 changed files with 111 additions and 44 deletions

View File

@@ -27,9 +27,13 @@ in
};
options.flake = flake-parts-lib.mkSubmoduleOptions {
clan = lib.mkOption { type = types.raw; };
clanInternals = lib.mkOption { type = types.raw; };
};
config = {
flake.clan = {
inherit (config.clan.clanInternals) templates;
};
flake.clanInternals = config.clan.clanInternals;
flake.nixosConfigurations = config.clan.nixosConfigurations;
};