nix-stuff/roles/server/headscale.nix

19 lines
370 B
Nix

{...}: {
services.headscale = {
enable = true;
settings = {
server_url = "https://headscale.toast003.xyz";
ip_prefixes = [
"100.100.0.0/16"
];
};
};
services.caddy = {
virtualHosts.headscale = {
hostName = "headscale.toast003.xyz";
extraConfig = ''
reverse_proxy localhost:8080
'';
};
};
}