mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-05 03:28:10 +02:00
Updated newton to support tailscale
This commit is contained in:
parent
d0f691d3d6
commit
e40ce2983b
1 changed files with 6 additions and 16 deletions
|
@ -38,25 +38,15 @@ in
|
||||||
services.zfs.autoSnapshot.enable = true;
|
services.zfs.autoSnapshot.enable = true;
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.tailscale ];
|
||||||
|
|
||||||
networking.wireguard.interfaces = {
|
# enable the tailscale service
|
||||||
wg0 = {
|
services.tailscale.enable = true;
|
||||||
ips = [ "10.100.0.10/24" ];
|
|
||||||
listenPort = 51820;
|
|
||||||
privateKeyFile = "/root/wireguard-keys/private";
|
|
||||||
|
|
||||||
peers = [
|
|
||||||
{
|
|
||||||
allowedIPs = [ "10.100.0.0/24" ];
|
|
||||||
publicKey = "oYsN1Qy+a7dwVOKapN5s5KJOmhSflLHZqh+GLMeNpHw=";
|
|
||||||
endpoint = "212.129.40.11:51820";
|
|
||||||
persistentKeepalive = 25;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue