System Gen167 @ 2025-04-24-00:03:37
This commit is contained in:
parent
6af180de05
commit
ce6f87d7ab
@ -26,11 +26,11 @@ in {
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
networking.firewall.allowedUDPPorts = [cfg.port];
|
networking.firewall.allowedUDPPorts = [cfg.port];
|
||||||
networking.wireguard.interfaces.wg0 = {
|
networking.wg-quick.interfaces.wg0 = {
|
||||||
inherit (peers.jonas) ips;
|
inherit (peers.jonas) address;
|
||||||
inherit (cfg) privateKeyFile;
|
inherit (cfg) privateKeyFile;
|
||||||
listenPort = cfg.port;
|
listenPort = cfg.port;
|
||||||
|
autostart = cfg.autoConnect;
|
||||||
peers = [
|
peers = [
|
||||||
peers.harbor
|
peers.harbor
|
||||||
];
|
];
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
jonas = {
|
jonas = {
|
||||||
publicKey = "oPMapC1S3TPe+/YQulG0AsVsOu+MzZY7huvAAXVJEnM=";
|
publicKey = "oPMapC1S3TPe+/YQulG0AsVsOu+MzZY7huvAAXVJEnM=";
|
||||||
ips = ["10.10.10.2/24"];
|
address = ["10.10.10.2/24"];
|
||||||
allowedIPs = ["10.10.10.2/32"];
|
allowedIPs = ["10.10.10.2/32"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user