chore(syncplay): move to hakurei

This commit is contained in:
arcnmx 2024-06-23 15:49:17 -07:00
parent ed909897b3
commit 47d830eaed
8 changed files with 151 additions and 37 deletions

View file

@ -20,6 +20,7 @@
services = {
tailscale.enable = true;
samba.enable = true;
syncplay.enable = true;
vouch-proxy = {
enable = true;
displayName = "Vouch Proxy/local";

View file

@ -6,7 +6,7 @@
...
}: let
inherit (lib.modules) mkIf mkMerge;
inherit (config.services) nginx;
inherit (config.services) nginx syncplay;
inherit (nginx) virtualHosts;
hassVouch = false;
in {
@ -53,6 +53,7 @@ in {
nixos.access.invidious
nixos.wake-chen
nixos.samba
nixos.syncplay
./reisen-ssh.nix
];
@ -109,6 +110,15 @@ in {
(mkIf config.services.tailscale.enable "smb.tail.${config.networking.domain}")
];
};
syncplay = {
inherit (syncplay) group;
domain = "syncplay.${config.networking.domain}";
extraDomainNames = [
"syncplay.local.${config.networking.domain}"
"syncplay.int.${config.networking.domain}"
(mkIf config.services.tailscale.enable "syncplay.tail.${config.networking.domain}")
];
};
sso = {
inherit (nginx) group;
domain = virtualHosts.keycloak.serverName;
@ -400,6 +410,10 @@ in {
services.samba.tls = {
useACMECert = "samba";
};
services.syncplay = {
openFirewall = true;
useACMECert = "syncplay";
};
services.tailscale.advertiseExitNode = true;