secrets: external

This commit is contained in:
Kiara Grouwstra 2024-08-04 09:55:18 +00:00
parent 08fda9b957
commit 0464e60e6e
2 changed files with 12 additions and 1 deletions

View file

@ -6,7 +6,8 @@
},
"secrets": {
"foo": {
"environment": "FOO"
"environment": "FOO",
"external": false
}
},
"services": {

View file

@ -28,6 +28,15 @@ in
type = types.nullOr types.str;
};
external = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether the value of this secret is set via other means.
${secretRef "secrets"}
'';
};
out = mkOption {
internal = true;
description = ''
@ -48,6 +57,7 @@ in
inherit (options)
file
environment
external
;
}
);