···
${lib.optionalString (cfg.registerHostname != "") "registerHostname=${cfg.registerHostname}"}
certrequired=${lib.boolToString cfg.clientCertRequired}
44
-
${lib.optionalString (cfg.sslCert != "") "sslCert=${cfg.sslCert}"}
45
-
${lib.optionalString (cfg.sslKey != "") "sslKey=${cfg.sslKey}"}
46
-
${lib.optionalString (cfg.sslCa != "") "sslCA=${cfg.sslCa}"}
44
+
${lib.optionalString (cfg.sslCert != null) "sslCert=${cfg.sslCert}"}
45
+
${lib.optionalString (cfg.sslKey != null) "sslKey=${cfg.sslKey}"}
46
+
${lib.optionalString (cfg.sslCa != null) "sslCA=${cfg.sslCa}"}
${lib.optionalString (cfg.dbus != null) "dbus=${cfg.dbus}"}
···
clientCertRequired = lib.mkEnableOption "requiring clients to authenticate via certificates";
241
-
type = lib.types.str;
241
+
type = lib.types.nullOr lib.types.path;
description = "Path to your SSL certificate.";
247
-
type = lib.types.str;
247
+
type = lib.types.nullOr lib.types.path;
description = "Path to your SSL key.";
253
-
type = lib.types.str;
253
+
type = lib.types.nullOr lib.types.path;
description = "Path to your SSL CA certificate.";
···
+ lib.optionalString cfg.logToFile ''
rw /var/log/murmur/murmurd.log,
421
-
+ lib.optionalString (cfg.sslCert != "") ''
421
+
+ lib.optionalString (cfg.sslCert != null) ''
424
-
+ lib.optionalString (cfg.sslKey != "") ''
424
+
+ lib.optionalString (cfg.sslKey != null) ''
427
-
+ lib.optionalString (cfg.sslCa != "") ''
427
+
+ lib.optionalString (cfg.sslCa != null) ''
+ lib.optionalString (cfg.dbus != null) ''