treewide: replace "yes" else "no" usages to lib.boolToYesNo
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user