forked from mirrors_public/oddlama_nix-config
feat: add netbird client (gateway server and dev machine)
This commit is contained in:
parent
590266c793
commit
8148ce9f37
17 changed files with 600 additions and 18 deletions
21
hosts/ward/guests/home-gateway.nix
Normal file
21
hosts/ward/guests/home-gateway.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue