testing headscale

This commit is contained in:
TheWanderingCrow 2025-10-13 17:53:00 -04:00
parent 9fd36d39c6
commit ff802cd127
2 changed files with 25 additions and 0 deletions

View file

@ -16,6 +16,7 @@
# FIXME(TODO): Turn this into it's own backup module
./backup.nix
./headscale.nix
# Disks
inputs.disko.nixosModules.disko

View file

@ -0,0 +1,24 @@
{pkgs, ...}: {
services.caddy = {
enable = true;
virtualHosts."headscale.wanderingcrow.net".extraConfig = ''
reverse_proxy 127.0.0.1:8088
'';
};
services.headscale = {
enable = true;
package = pkgs.headscale;
port = 8088;
address = "127.0.0.1";
settings = {
server_url = "https://headscale.wanderingcrow.net";
grpc_listen_addr = "0.0.0.0:50443";
database.type = "sqlite";
dns = {
magic_dns = true;
base_domain = "wce-internal";
};
};
};
}