switch to wg-quick (adds dns)
This commit is contained in:
parent
a09d867804
commit
01ce8e9e74
2 changed files with 5 additions and 4 deletions
nix
|
@ -5,15 +5,15 @@
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.wireguard.enable = true;
|
networking.wg-quick.interfaces = {
|
||||||
networking.wireguard.interfaces = {
|
|
||||||
freyanet = {
|
freyanet = {
|
||||||
ips = [ "10.2.0.2/32" "fd:cafe:dead:bee::2/128" "fe80::2/128" ];
|
address = [ "10.2.0.2/32" "fd:cafe:dead:bee::2/128" "fe80::2/128" ];
|
||||||
|
dns = [ "10.2.2.2" ];
|
||||||
privateKeyFile = "${config.dotfilesPath}/secrets/freyanet.key";
|
privateKeyFile = "${config.dotfilesPath}/secrets/freyanet.key";
|
||||||
|
|
||||||
peers = [{
|
peers = [{
|
||||||
publicKey = "x0ykwakpYCvI/pG+nR83lNUyeOE9m54thnX3bvZ+FUk=";
|
publicKey = "x0ykwakpYCvI/pG+nR83lNUyeOE9m54thnX3bvZ+FUk=";
|
||||||
allowedIPs = [ "10.0.0.0/12" "fd:cafe::/32" "fe80::/64" ];
|
allowedIPs = [ "10.0.0.0/12" "fd:cafe::/32" ];
|
||||||
endpoint = "freya.cat:41111";
|
endpoint = "freya.cat:41111";
|
||||||
persistentKeepalive = 25;
|
persistentKeepalive = 25;
|
||||||
}];
|
}];
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
# utility
|
# utility
|
||||||
acpi
|
acpi
|
||||||
curl
|
curl
|
||||||
|
dig
|
||||||
file
|
file
|
||||||
htop
|
htop
|
||||||
openssh
|
openssh
|
||||||
|
|
Loading…
Reference in a new issue