Fixing all warnings

This commit is contained in:
Lyes Saadi 2026-03-06 20:34:14 +01:00
parent 32720ae712
commit 169912a47b
Signed by: lyes
GPG key ID: 55A1D803917CF39A
15 changed files with 124 additions and 92 deletions

View file

@ -32,6 +32,8 @@ let
} forwardedServices;
serviceList = lib.mapAttrsToList (name: _: name + ".service") forwardedServices;
encServicesList = lib.mapAttrsToList (name: _: name + ".service") cfg.encapsulatedServices;
in
lib.mkIf (forwardedServices != { } && cfg.portForwarding.enable) {
assertions = [
@ -49,8 +51,8 @@ lib.mkIf (forwardedServices != { } && cfg.portForwarding.enable) {
services.natpmpc-lease = {
description = "Request VPN port forwarding leases.";
wantedBy = serviceList;
after = [ "wireguard.target" ];
# wantedBy = serviceList;
after = [ "wireguard.target" ] ++ encServicesList;
wants = [ "wireguard.target" ];
# preStart = "sleep 3";