clanCore: refactor flake-module.nix into smaller files

This commit is contained in:
Jörg Thalheim
2023-12-15 13:14:55 +01:00
parent f168a9282d
commit a1a8486be8
8 changed files with 144 additions and 129 deletions

View File

@@ -0,0 +1,16 @@
{ lib
, ...
}: {
/*
Declaring imports inside the module system does not trigger an infinite
recursion in this case because buildClan generates the imports from the
settings.json file before calling out to evalModules.
*/
options.clanImports = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = ''
A list of imported module names imported from clan-core.clanModules.<name>
The buildClan function will automatically import these modules for the current machine.
'';
};
}