wireguard: setup VPN

This commit is contained in:
Antoine Martin 2021-02-22 18:59:37 +01:00
parent 1359014331
commit 80942f7eb3
8 changed files with 158 additions and 1 deletions

View file

@ -41,6 +41,7 @@ in
"62.210.16.6"
"62.210.16.7"
];
my.networking.externalInterface = "eno1";
# List packages installed in system profile. To search, run:
# $ nix search wget
@ -119,6 +120,23 @@ in
username = "alarsyo";
password = secrets.transmission-password;
};
wireguard = {
enable = true;
iface = "wg";
port = 51820;
net = {
v4 = {
subnet = "10.0.0";
mask = 24;
};
v6 = {
subnet = "fd42:42:42";
mask = 64;
};
};
};
};
security.acme.acceptTerms = true;