This commit is contained in:
Chris Kruining 2026-03-30 09:22:42 +02:00
parent f59d282c12
commit 2471562583
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
4 changed files with 54 additions and 27 deletions

View file

@ -11,7 +11,7 @@
hasPeers = (cfg.peer |> attrNames |> length) > 0;
in {
options.sneeuwvlok.services.networking.wireguard = {
# enable = mkEnableOption "enable wireguard" // {default = true;};
enable = mkEnableOption "enable wireguard" // {default = true;};
peer = mkOption {
type = types.attrsOf (types.submodule {
@ -32,7 +32,7 @@ in {
};
};
config = mkIf hasPeers {
config = mkIf (cfg.enable && hasPeers) {
# networking.firewall.allowedUDPPorts = cfg.peer |> lib.attrValues |> lib.map (p: p.port);
# networking.wq-quick = {
# # enable = cfg.enable;