mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
[MATRIX, WEB SERVERS] Improvements, DNS-01
This commit is contained in:
parent
a1f1dee6a1
commit
e642b3879c
13 changed files with 191 additions and 94 deletions
18
nixos/roles/web-server/scalpel.nix
Normal file
18
nixos/roles/web-server/scalpel.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
prev,
|
||||
...
|
||||
}: {
|
||||
scalpel.trafos."credentials_file" = {
|
||||
source = "/etc/ssl/credentials_template";
|
||||
matchers."CLOUDFLARE_EMAIL".secret = config.sops.secrets.cloudflare_email.path;
|
||||
matchers."CLOUDFLARE_TOKEN".secret = config.sops.secrets.cloudflare_token.path;
|
||||
owner = "acme";
|
||||
group = "acme";
|
||||
mode = "0440";
|
||||
};
|
||||
|
||||
security.acme.defaults.credentialsFile = config.scalpel.trafos."credentials_file".destination;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue