Files
dotfiles/nixos/tako/services/tuwunel.nix
2026-02-10 14:24:39 +05:30

14 lines
377 B
Nix

{config, ...}: {
services.matrix-tuwunel = {
enable = true;
settings.global = {
server_name = "darksailor.dev";
unix_socket_path = "/var/run/tuwunel/tuwunel.sock";
};
};
services.caddy.virtualHosts."matrix.darksailor.dev".extraConfig = ''
reverse_proxy unix//var/run/tuwunel/tuwunel.sock
'';
users.users.caddy.extraGroups = ["tuwunel"];
}