This commit is contained in:
2025-07-20 14:20:59 +02:00
parent ff656dc319
commit 428a2cd615
4 changed files with 69 additions and 69 deletions

View File

@@ -44,23 +44,23 @@ in {
networking = {
hostName = "sobotka";
domain = "cnst.dev";
wireguard = {
interfaces.wg0 = {
ips = [
"127.0.0.1/8"
];
peers = [
{
allowedIPs = [
"192.168.88.13/24"
];
# endpoint = "demo.wireguard.io:12913";
publicKey = "cUeRvwTwrL5GRc4dHjea89RJSa1kh4kIA/sHYzmscyQ=";
}
];
privateKeyFile = config.age.secrets.wgSobotkaPrivateKey.path;
};
};
# wireguard = {
# interfaces.wg0 = {
# ips = [
# "127.0.0.1/8"
# ];
# peers = [
# {
# allowedIPs = [
# "192.168.88.13/24"
# ];
# # endpoint = "demo.wireguard.io:12913";
# publicKey = "cUeRvwTwrL5GRc4dHjea89RJSa1kh4kIA/sHYzmscyQ=";
# }
# ];
# privateKeyFile = config.age.secrets.wgSobotkaPrivateKey.path;
# };
# };
};
powerManagement.enable = false;

View File

@@ -33,6 +33,8 @@
enable = true;
namespace = "vpn";
configFile = config.age.secrets.wgCredentials.path;
privateIP = "10.68.145.193/32";
dnsIP = "10.64.0.1";
};
};
}