mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
28 lines
718 B
Nix
28 lines
718 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
users.users.syncplay = { isSystemUser = true; };
|
|
|
|
users.groups."sync-cert".members = [ "nginx" "syncplay" ];
|
|
security.acme = { certs."sync.kittywit.ch" = { group = "sync-cert"; }; };
|
|
|
|
services.nginx.virtualHosts."sync.kittywit.ch" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
};
|
|
|
|
deploy.tf.dns.records.kittywitch_sync = {
|
|
tld = "kittywit.ch.";
|
|
domain = "sync";
|
|
cname.target = "athame.kittywit.ch.";
|
|
};
|
|
|
|
services.syncplay = {
|
|
enable = true;
|
|
user = "syncplay";
|
|
group = "sync-cert";
|
|
certDir = "/var/lib/acme/sync.kittywit.ch/";
|
|
};
|
|
|
|
security.acme.certs."sync.kittywit.ch".postRun = "cp key.pem privkey.pem\nchown acme:voice-cert privkey.pem";
|
|
}
|