mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-23 00:40:33 +01:00
nix fmt; specify allowedIPs for wg peer
This commit is contained in:
parent
0bf22732c4
commit
28c73eaba5
|
@ -1,6 +1,9 @@
|
||||||
{config, lib, inputs, ...}:
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
systemd.mounts."frotting" = {
|
systemd.mounts."frotting" = {
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,12 @@
|
||||||
|
|
||||||
networking.wireguard.interfaces = {
|
networking.wireguard.interfaces = {
|
||||||
wg0 = {
|
wg0 = {
|
||||||
ips = [/* "2a0f:be01:fe:fa1::1/64" */ "2a01:4f8:10a:1aab:f000::1/80"];
|
ips = [
|
||||||
|
/*
|
||||||
|
"2a0f:be01:fe:fa1::1/64"
|
||||||
|
*/
|
||||||
|
"2a01:4f8:10a:1aab:f000::1/80"
|
||||||
|
];
|
||||||
|
|
||||||
listenPort = 51820;
|
listenPort = 51820;
|
||||||
|
|
||||||
|
@ -20,9 +25,13 @@
|
||||||
{
|
{
|
||||||
#anner
|
#anner
|
||||||
publicKey = "5ar4lh3Ra4TRmUJeeBtPgDvZnAkGssJDUN53y9oa3So=";
|
publicKey = "5ar4lh3Ra4TRmUJeeBtPgDvZnAkGssJDUN53y9oa3So=";
|
||||||
allowedIPs = ["2a0f:be01::/40"];
|
allowedIPs = [
|
||||||
|
"2a0f:be01:0:100::/64"
|
||||||
|
"2a0f:be01:0:200::/64"
|
||||||
|
"2a0f:be01:fe:f00::/56"
|
||||||
|
];
|
||||||
endpoint = "[2a0f:be01::1]:51822";
|
endpoint = "[2a0f:be01::1]:51822";
|
||||||
persistentKeepalive = 15;
|
persistentKeepalive = 15;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue