This commit is contained in:
Chris Kruining 2026-03-23 11:27:46 +01:00
parent 18ebde767e
commit 478f26a9b8
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
2 changed files with 10 additions and 10 deletions

View file

@ -29,7 +29,7 @@ in {
package = pkgs.caddy.withPlugins { package = pkgs.caddy.withPlugins {
plugins = ["github.com/corazawaf/coraza-caddy/v2@v2.1.0"]; plugins = ["github.com/corazawaf/coraza-caddy/v2@v2.1.0"];
hash = "sha256-rsDnTunR8C7hVOX5aKcba+iFYHbpWek65DZgbMxOdTs="; hash = "sha256-pSXjLaZoRtKV3eFl2ySRSjl3yxi514G1Cb7pfrpxxtE=";
}; };
virtualHosts = virtualHosts =

View file

@ -33,15 +33,15 @@ in {
}; };
config = mkIf hasPeers { config = mkIf hasPeers {
networking.firewall.allowedUDPPorts = cfg.peer |> lib.attrValues |> lib.map (p: p.port); # networking.firewall.allowedUDPPorts = cfg.peer |> lib.attrValues |> lib.map (p: p.port);
networking.wq-quick = { # networking.wq-quick = {
# enable = cfg.enable; # # enable = cfg.enable;
interfaces = # interfaces =
cfg.peer # cfg.peer
|> attrsToList # |> attrsToList
|> imap0 (i: { name, value }: (namevaluepair "wg${i}" (value // { })); # |> imap0 (i: { name, value }: (namevaluepair "wg${i}" (value // {})))
|> listToAttrs # |> listToAttrs;
}; # };
}; };
} }