feat(dgn-secrets): Add a matches option
This option allows specifying regexes tied to options. When a secret matches a pattern, the the options are applied to it.
This commit is contained in:
parent
18c1fa1ddd
commit
5622bc3748
9 changed files with 71 additions and 107 deletions
|
@ -1,9 +1,6 @@
|
|||
{ config, lib, dgn-lib, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
let
|
||||
inherit (dgn-lib) setDefault;
|
||||
|
||||
host = "docs.dgnum.eu";
|
||||
let host = "docs.dgnum.eu";
|
||||
in {
|
||||
services.outline = {
|
||||
enable = true;
|
||||
|
@ -57,8 +54,5 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
dgn-secrets.options = [
|
||||
(setDefault { owner = "outline"; }
|
||||
(builtins.filter (lib.hasPrefix "outline-") config.dgn-secrets.names))
|
||||
];
|
||||
dgn-secrets.matches."^outline-.*$" = { owner = "outline"; };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue