refractoring modules without .enable

This commit is contained in:
cnst
2024-08-24 14:57:06 +02:00
parent bad2a7f088
commit f36901b56a
4 changed files with 14 additions and 14 deletions

View File

@@ -11,17 +11,17 @@ in {
options = {
modules.sysd.sops = {
enable = mkEnableOption "Enables sops system environment";
cnix = mkOption {
cnix.enable = mkOption {
type = lib.types.bool;
default = false;
description = "Apply cnix sops settings";
};
toothpc = mkOption {
toothpc.enable = mkOption {
type = lib.types.bool;
default = false;
description = "Apply toothpc sops settings";
};
adampad = mkOption {
adampad.enable = mkOption {
type = lib.types.bool;
default = false;
description = "Apply adampad sops settings";
@@ -38,7 +38,7 @@ in {
sshKeyPaths = [];
};
}
(mkIf cfg.cnix {
(mkIf cfg.cnix.enable {
secrets = {
openai_api_key = {
format = "yaml";
@@ -50,7 +50,7 @@ in {
};
};
})
(mkIf cfg.toothpc {
(mkIf cfg.toothpc.enable {
secrets = {
openai_api_key = {
format = "yaml";
@@ -62,7 +62,7 @@ in {
};
};
})
(mkIf cfg.adampad {
(mkIf cfg.adampad.enable {
secrets = {
openai_api_key = {
format = "yaml";