This commit is contained in:
parent
0e203b6eca
commit
ccfbd0b477
6 changed files with 46 additions and 42 deletions
|
@ -22,7 +22,9 @@ let vs = config.vault-secrets.secrets; in
|
|||
|
||||
environment.noXlibs = lib.mkForce false;
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ config.networking.wireguard.interfaces.wg0.listenPort ];
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
config.networking.wireguard.interfaces.wg0.listenPort
|
||||
];
|
||||
|
||||
vault-secrets.secrets.wireguard = {
|
||||
services = [ "wireguard-wg0" ];
|
||||
|
@ -34,6 +36,11 @@ let vs = config.vault-secrets.secrets; in
|
|||
externalInterface = "eth0";
|
||||
};
|
||||
|
||||
services.prometheus.exporters.wireguard = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
networking.wireguard.interfaces.wg0 = {
|
||||
ips = [ "10.100.0.1/24" ];
|
||||
listenPort = 51820;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue