first pass turning headscale on w1

This commit is contained in:
Don Harper 2026-06-18 12:18:08 -05:00
parent ea514705e5
commit 564139518b
3 changed files with 54 additions and 1 deletions

View file

@ -2,7 +2,9 @@
imports = [
../templates/server.nix
./hardware-configuration.nix
./podman.nix
../../modules/headscale.nix
# ../../modules/netbird.nix
# ./podman.nix
];
networking.hostName = "w1";

23
modules/headscale.nix Normal file
View file

@ -0,0 +1,23 @@
{
pkgs,
lib,
config,
...
}: with lib; let
domain = "head.nb.duckland.net";
in {
services = {
headscale = {
enable = true;
settings = {
server_url = "http://head.nb.duckland.net";
dns = {
base_domain = "nb.duckland.net";
nameservers = {
global = [ "1.1.1.1" "1.0.0.1" "2606:4700:4700::1111" "2606:4700:4700::1001" ];
};
};
};
};
};
}

28
modules/netbird.nix Normal file
View file

@ -0,0 +1,28 @@
{
pkgs,
lib,
config,
...
}: {
services.netbird.server = {
enable = true;
domain = "nb.duckland.net";
enableNginx = true;
dashboard = {
enable = false;
domain = "nb.duckland.net";
enableNginx = true;
};
management = {
enable = true;
domain = "nb.duckland.net";
enableNginx = true;
dnsDomain = "duckland";
};
signal = {
enable = true;
domain = "nb.duckland.net";
enableNginx = true;
};
};
}