secrets: external
This commit is contained in:
parent
08fda9b957
commit
0464e60e6e
2 changed files with 12 additions and 1 deletions
|
@ -6,7 +6,8 @@
|
|||
},
|
||||
"secrets": {
|
||||
"foo": {
|
||||
"environment": "FOO"
|
||||
"environment": "FOO",
|
||||
"external": false
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
|
|
|
@ -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
|
||||
;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue