mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-17 14:39:44 +02:00
feat: add netbird for homelab, keep tailscale for work (#225)
This commit is contained in:
@@ -72,6 +72,7 @@ in
|
||||
|
||||
# network
|
||||
"/var/lib/tailscale"
|
||||
"/var/lib/netbird-homelab" # netbird's homelab client
|
||||
"/var/lib/bluetooth"
|
||||
"/var/lib/NetworkManager"
|
||||
"/var/lib/iwd"
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
# enable tailscale on aquamarine
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "server";
|
||||
extraSetFlags = [
|
||||
# access home network via tailscale
|
||||
"--advertise-routes=192.168.5.0/24"
|
||||
];
|
||||
};
|
||||
}
|
||||
28
hosts/idols-aquamarine/vpn.nix
Normal file
28
hosts/idols-aquamarine/vpn.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
# tailscale do not support running multiple clients on the same host,
|
||||
# so we use netbird for homelab instead.
|
||||
#
|
||||
# services.tailscale = {
|
||||
# enable = true;
|
||||
# port = 41641;
|
||||
# interfaceName = "tailscale0";
|
||||
# # allow the Tailscale UDP port through the firewall
|
||||
# openFirewall = true;
|
||||
#
|
||||
# useRoutingFeatures = "server";
|
||||
# extraSetFlags = [
|
||||
# # access home network via tailscale
|
||||
# "--advertise-routes=192.168.5.0/24"
|
||||
# "--accept-routes=false"
|
||||
# ];
|
||||
# };
|
||||
|
||||
services.netbird.useRoutingFeatures = "server";
|
||||
services.netbird.clients.homelab = {
|
||||
port = 51820;
|
||||
name = "homelab";
|
||||
interface = "netbird-homelab";
|
||||
hardened = true;
|
||||
autoStart = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user