mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-29 07:10:51 +01: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.autoScrub.enable = true;
|
||||
|
||||
environment.systemPackages = [ pkgs.tailscale ];
|
||||
|
||||
# enable the tailscale service
|
||||
services.tailscale.enable = true;
|
||||
|
||||
networking.wireguard.interfaces = {
|
||||
wg0 = {
|
||||
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";
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue