add headscale

This commit is contained in:
Vinzenz Schroeter 2026-01-04 20:16:56 +01:00 committed by müde
parent 0414f6ac07
commit 24b0fcf632
2 changed files with 27 additions and 0 deletions

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./hardware.nix ./hardware.nix
./nginx.nix ./nginx.nix
./headscale.nix
]; ];
config = { config = {

View file

@ -0,0 +1,26 @@
let
headscale-port = 8668;
in
{
services = {
headscale = {
enable = true;
address = "localhost";
port = headscale-port;
settings = {
server_url = "https://headscale.zerforschen.plus";
dns = {
override_local_dns = false;
base_domain = "high-gravity.space";
};
};
};
nginx.virtualHosts."uplink.darkest.space" = {
addSSL = true;
enableACME = true;
locations = {
"/".proxyPass = "http://localhost:${builtins.toString headscale-port}";
};
};
};
}