treewide: replace "yes" else "no" usages to lib.boolToYesNo

This commit is contained in:
Aliaksandr
2025-10-13 21:53:42 +03:00
parent 2de6ce380f
commit 80f12557f5
65 changed files with 118 additions and 140 deletions

View File

@@ -357,7 +357,7 @@ in
]
++ lib.optional (!config.networking.enableIPv6) "AddressFamily inet"
++ lib.optional cfg.setXAuthLocation "XAuthLocation ${pkgs.xorg.xauth}/bin/xauth"
++ lib.optional (cfg.forwardX11 != null) "ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}"
++ lib.optional (cfg.forwardX11 != null) "ForwardX11 ${lib.boolToYesNo cfg.forwardX11}"
++ lib.optional (
cfg.pubkeyAcceptedKeyTypes != [ ]
) "PubkeyAcceptedKeyTypes ${builtins.concatStringsSep "," cfg.pubkeyAcceptedKeyTypes}"