fix typing

This commit is contained in:
XenGi 2024-08-12 16:16:41 +02:00
parent e03b06cf20
commit 88b6f30a59
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg

View file

@ -42,14 +42,14 @@
configFile = pkgs.writeText "config.ini" '' configFile = pkgs.writeText "config.ini" ''
[ui] [ui]
host=${cfg.ui.host} host=${cfg.ui.host}
port=${cfg.ui.port} port=${toString cfg.ui.port}
tls=${cfg.ui.tls} tls=${if cfg.ui.tls then "true" else "false"}
certificate=${cfg.ui.certificate} certificate=${cfg.ui.certificate}
key=${cfg.ui.key} key=${cfg.ui.key}
[mpd] [mpd]
host=${cfg.backend.host} host=${cfg.backend.host}
port=${cfg.backend.port} port=${toString cfg.backend.port}
''; '';
execCommand = "${cfg.package}/bin/sanic -c '${configFile}'"; execCommand = "${cfg.package}/bin/sanic -c '${configFile}'";
in in