feat(dragon): no more wireguard

This commit is contained in:
Florian Schmitt 2025-05-08 00:35:12 +03:00
parent 02faf51be7
commit 0075a7a3c6

View file

@ -38,57 +38,57 @@
networking = {
useDHCP = lib.mkDefault true;
wg-quick.interfaces = {
wgnixin = {
address = [
"192.168.12.4/32"
"2a01:4f9:1a:9a05::4/128"
];
dns = [
"80.67.169.12"
"80.67.169.40"
"2001:910:800::12"
"2001:910:800::40"
];
privateKeyFile = "/home/mrflos/Nextcloud/Apps/lab12.mrflos.wg-private.key";
peers = [
{
publicKey = "cUmp55I20JEhxr+RMmOsX+6U9kcDiAq3grnvzjQ642w=";
allowedIPs = [
#"0.0.0.0/0"
#"::/0"
"192.168.12.0/24"
"2a01:4f9:1a:9a05::/64"
];
endpoint = "vpn.lab12.fr:51812";
persistentKeepalive = 25;
}
];
};
wg34 = {
address = [
"10.34.12.8/24"
];
dns = [
"80.67.169.12"
"80.67.169.40"
# "89.234.152.131" #iloth
];
privateKeyFile = "/home/mrflos/Nextcloud/Apps/iloth.mrflos.wg-private.key";
peers = [
{
publicKey = "n23gZzugKc68ax6J8LDZ3DG7ECwjXXDi/XTwas6RbAU=";
allowedIPs = [
"10.34.0.0/16"
];
endpoint = "goelland-wan.distrilab.org:51777";
persistentKeepalive = 25;
}
];
};
};
# wg-quick.interfaces = {
# wgnixin = {
# address = [
# "192.168.12.4/32"
# "2a01:4f9:1a:9a05::4/128"
# ];
# dns = [
# "80.67.169.12"
# "80.67.169.40"
# "2001:910:800::12"
# "2001:910:800::40"
# ];
# privateKeyFile = "/home/mrflos/Nextcloud/Apps/lab12.mrflos.wg-private.key";
#
# peers = [
# {
# publicKey = "cUmp55I20JEhxr+RMmOsX+6U9kcDiAq3grnvzjQ642w=";
# allowedIPs = [
# #"0.0.0.0/0"
# #"::/0"
# "192.168.12.0/24"
# "2a01:4f9:1a:9a05::/64"
# ];
# endpoint = "vpn.lab12.fr:51812";
# persistentKeepalive = 25;
# }
# ];
# };
# wg34 = {
# address = [
# "10.34.12.8/24"
# ];
# dns = [
# "80.67.169.12"
# "80.67.169.40"
# # "89.234.152.131" #iloth
# ];
# privateKeyFile = "/home/mrflos/Nextcloud/Apps/iloth.mrflos.wg-private.key";
#
# peers = [
# {
# publicKey = "n23gZzugKc68ax6J8LDZ3DG7ECwjXXDi/XTwas6RbAU=";
# allowedIPs = [
# "10.34.0.0/16"
# ];
# endpoint = "goelland-wan.distrilab.org:51777";
# persistentKeepalive = 25;
# }
# ];
# };
# };
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";