fix: multiple fixes + cleanup and formatting

This commit is contained in:
FUFSoB committed 2026-09-17 22:51:31 +05:00
1 parent 321e9ca468
commit c62000821a
59 files changed
+1357 -920

No files matched your search

+14 -2
View File
@@ -85,7 +85,17 @@ let
}
'';
inherit (import ./wg-tunnel.nix { inherit lib pkgs cfg derived; }) mkTunnel;
inherit
(import ./wg-tunnel.nix {
inherit
lib
pkgs
cfg
derived
;
})
mkTunnel
;
viaAmneziaWg = builtins.elem w.asOutbound [
"userspace"
"interface"
@@ -135,7 +145,9 @@ in
StateDirectoryMode = "0700";
WorkingDirectory = "${derived.constants.stateDir}/warp";
UMask = "0077";
LoadCredential = lib.optional (cfg.proxy.enable && withProxyAuth) "proxy-password:${passwordSource}";
LoadCredential = lib.optional (
cfg.proxy.enable && withProxyAuth
) "proxy-password:${passwordSource}";
ExecStart = registerScript;
};
};