refactor secrets & facts -> secret_facts & public_facts

This commit is contained in:
lassulus
2024-03-23 05:05:31 +01:00
parent ddc28f53df
commit f16667e25a
26 changed files with 116 additions and 154 deletions

View File

@@ -50,18 +50,19 @@
the directory on the deployment server where secrets are uploaded
'';
};
factsModule = lib.mkOption {
publicFactsModule = lib.mkOption {
type = lib.types.str;
description = ''
the python import path to the facts module
'';
default = "clan_cli.facts.modules.in_repo";
default = "clan_cli.facts.public_modules.in_repo";
};
secretsModule = lib.mkOption {
secretFactsModule = lib.mkOption {
type = lib.types.str;
description = ''
the python import path to the secrets module
'';
default = "clan_cli.facts.secret_modules.sops";
};
secretsData = lib.mkOption {
type = lib.types.path;
@@ -91,7 +92,7 @@
# optimization for faster secret generate/upload and machines update
config = {
system.clan.deployment.data = {
inherit (config.system.clan) factsModule secretsModule secretsData;
inherit (config.system.clan) publicFactsModule secretFactsModule secretsData;
inherit (config.clan.networking) targetHost buildHost;
inherit (config.clan.deployment) requireExplicitUpdate;
inherit (config.clanCore) secretsUploadDirectory;