mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
18 lines
429 B
Nix
18 lines
429 B
Nix
{ config, ... }:
|
|
|
|
let
|
|
baseDomain = "nickiel.net";
|
|
domain = "headscale.${baseDomain}";
|
|
in {
|
|
# https://carjorvaz.com/posts/setting-up-headscale-on-nixos/
|
|
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 ];
|
|
}
|