move clan-imports into clanCore
This commit is contained in:
16
nixosModules/clanCore/clan-imports/default.nix
Normal file
16
nixosModules/clanCore/clan-imports/default.nix
Normal 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.
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{ self, inputs, lib, ... }: {
|
||||
flake.nixosModules.clanCore = { config, pkgs, options, ... }: {
|
||||
imports = [
|
||||
../clanImports
|
||||
./clan-imports
|
||||
./secrets
|
||||
./zerotier
|
||||
./meshnamed
|
||||
|
||||
Reference in New Issue
Block a user