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
|
||||
];
|
||||
|
||||
networking.wireguard.enable = true;
|
||||
networking.wireguard.interfaces = {
|
||||
networking.wg-quick.interfaces = {
|
||||
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";
|
||||
|
||||
peers = [{
|
||||
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";
|
||||
persistentKeepalive = 25;
|
||||
}];
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
# utility
|
||||
acpi
|
||||
curl
|
||||
dig
|
||||
file
|
||||
htop
|
||||
openssh
|
||||
|
|
Loading…
Reference in a new issue