Updated newton to support tailscale

This commit is contained in:
Julien Malka 2022-05-10 07:01:21 +02:00
parent d0f691d3d6
commit e40ce2983b
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -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";
}