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": {
|
"secrets": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"environment": "FOO"
|
"environment": "FOO",
|
||||||
|
"external": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"services": {
|
"services": {
|
||||||
|
|
|
@ -28,6 +28,15 @@ in
|
||||||
type = types.nullOr types.str;
|
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 {
|
out = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
description = ''
|
description = ''
|
||||||
|
@ -48,6 +57,7 @@ in
|
||||||
inherit (options)
|
inherit (options)
|
||||||
file
|
file
|
||||||
environment
|
environment
|
||||||
|
external
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue