use rfc-style formatter
This commit is contained in:
parent
993b457e0b
commit
f57ed53bc5
30 changed files with 324 additions and 176 deletions
|
@ -2,16 +2,20 @@
|
|||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
enableIPv6 = true;
|
||||
externalInterface = "ens18";
|
||||
internalInterfaces = ["wg0"];
|
||||
internalInterfaces = [ "wg0" ];
|
||||
};
|
||||
|
||||
networking.wg-quick.interfaces.wg0 = {
|
||||
address = ["10.0.0.1/24" "fdc9:281f:04d7:9ee9::1/64"];
|
||||
address = [
|
||||
"10.0.0.1/24"
|
||||
"fdc9:281f:04d7:9ee9::1/64"
|
||||
];
|
||||
listenPort = 51820;
|
||||
privateKeyFile = config.sops.secrets."wireguard/private".path;
|
||||
postUp = ''
|
||||
|
@ -33,12 +37,18 @@
|
|||
peers = [
|
||||
{
|
||||
publicKey = "qUhWoTPVC7jJdDEJLYY92OeiwPkaf8I5pv5kkMcSW3g=";
|
||||
allowedIPs = ["10.0.0.2/32" "fdc9:281f:04d7:9ee9::2/128"];
|
||||
allowedIPs = [
|
||||
"10.0.0.2/32"
|
||||
"fdc9:281f:04d7:9ee9::2/128"
|
||||
];
|
||||
presharedKeyFile = config.sops.secrets."wireguard/psk-yt".path;
|
||||
}
|
||||
{
|
||||
publicKey = "JIGi60wzLw717Cim1dSFoLCdJz5rePa5AIFfuisJI0k=";
|
||||
allowedIPs = ["10.0.0.3/32" "fdc9:281f:04d7:9ee9::3/128"];
|
||||
allowedIPs = [
|
||||
"10.0.0.3/32"
|
||||
"fdc9:281f:04d7:9ee9::3/128"
|
||||
];
|
||||
presharedKeyFile = config.sops.secrets."wireguard/psk-phone".path;
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue