chore(buildClan): make buildClan and flake-parts return identical outputs

This commit is contained in:
Johannes Kirschbauer
2025-04-01 17:28:52 +02:00
parent 3fdcb4e5cc
commit 81898996f4
4 changed files with 64 additions and 30 deletions

17
lib/build-clan/public.nix Normal file
View File

@@ -0,0 +1,17 @@
/**
Publicly exported attribute names
These are mapped from 'options.clan.{name}' into 'flake.{name}'
For example "clanInternals" will be exposed as "flake.clan.clanInternals"
This list is used to guarantee equivalent attribute sets for both flake-parts and buildClan users.
*/
{
# flake.clan.{name} <- clanInternals.{name}
clan = [
"templates"
];
# flake.{name} <- clan.{name}
topLevel = [
"clanInternals"
"nixosConfigurations"
];
}