nicks-nix-config/hosts/Alaska/modules/headscale.nix

17 lines
366 B
Nix

{ config, ... }:
let
baseDomain = "nickiel.net";
domain = "headscale.${baseDomain}";
in {
services.headscale = {
enable = true;
address = "0.0.0.0";
port = 8082;
settings = {
server_url = "https://${domain}";
dns_config.base_domain = baseDomain;
};
};
environment.systemPackages = [ config.services.headscale.package ];
}