mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
services/syncplay: Using custom service now
This commit is contained in:
parent
b1c18bc802
commit
88667142c9
1 changed files with 16 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, witch, ... }:
|
||||
|
||||
{
|
||||
users.users.syncplay = { isSystemUser = true; };
|
||||
|
|
@ -17,13 +17,22 @@
|
|||
cname.target = "athame.kittywit.ch.";
|
||||
};
|
||||
|
||||
services.syncplay = {
|
||||
enable = true;
|
||||
user = "syncplay";
|
||||
group = "sync-cert";
|
||||
certDir = "/var/lib/acme/sync.kittywit.ch/";
|
||||
};
|
||||
systemd.services.syncplay = {
|
||||
environment = {
|
||||
SYNCPLAY_PASSWORD = witch.secrets.hosts.athame.syncplay.password;
|
||||
SYNCPLAY_SALT = witch.secrets.hosts.athame.syncplay.salt;
|
||||
};
|
||||
description = "Syncplay Service";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-online.target " ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart =
|
||||
"${pkgs.syncplay}/bin/syncplay-server --port 8999 --tls /var/lib/acme/sync.kittywit.ch/ --disable-ready";
|
||||
User = "syncplay";
|
||||
Group = "sync-cert";
|
||||
};
|
||||
};
|
||||
security.acme.certs."sync.kittywit.ch".postRun = ''
|
||||
cp key.pem privkey.pem
|
||||
chown acme:voice-cert privkey.pem'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue