forked from DGNum/infrastructure
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,10 +1,6 @@
|
|||
{ config, lib, dgn-lib, ... }:
|
||||
|
||||
let
|
||||
inherit (dgn-lib) setDefault;
|
||||
|
||||
host = "videos.dgnum.eu";
|
||||
{ config, ... }:
|
||||
|
||||
let host = "videos.dgnum.eu";
|
||||
in {
|
||||
services.peertube = {
|
||||
enable = true;
|
||||
|
@ -63,8 +59,5 @@ in {
|
|||
forceSSL = true;
|
||||
};
|
||||
|
||||
dgn-secrets.options = [
|
||||
(setDefault { owner = "peertube"; }
|
||||
(builtins.filter (lib.hasPrefix "peertube-") config.dgn-secrets.names))
|
||||
];
|
||||
dgn-secrets.matches."^peertube-.*$" = { owner = "peertube"; };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue