1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add netbird client (gateway server and dev machine)

This commit is contained in:
oddlama 2024-05-18 02:38:38 +02:00
parent 590266c793
commit 8148ce9f37
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
17 changed files with 600 additions and 18 deletions

View file

@ -106,6 +106,7 @@
{}
// mkMicrovm "adguardhome"
// mkMicrovm "forgejo"
// mkMicrovm "home-gateway"
// mkMicrovm "kanidm"
// mkMicrovm "netbird"
// mkMicrovm "radicale"

View file

@ -0,0 +1,21 @@
{nodes, ...}: {
environment.persistence."/persist".directories = [
{
directory = "/var/lib/netbird-home";
mode = "0700";
}
];
services.netbird.clients.home = {
port = 51820;
name = "netbird-home";
interface = "wt-home";
openFirewall = true;
config.ServerSSHAllowed = false;
environment = rec {
NB_MANAGEMENT_URL = "https://${nodes.sentinel.config.networking.providedDomains.netbird}";
NB_ADMIN_URL = NB_MANAGEMENT_URL;
NB_HOSTNAME = "home-gateway";
};
};
}

View file

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILlEjX8dXaeZl+ax7YphX9XNr/S9WwKLsgbV7FDjWNzY