fix package definition

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

View file

@ -51,11 +51,16 @@
host=${cfg.backend.host}
port=${cfg.backend.port}
'';
execCommand = "${pkgs.sanic}/bin/sanic -c '${configFile}'";
execCommand = "${cfg.package}/bin/sanic -c '${configFile}'";
in
{
options.services.sanic = {
enable = lib.mkEnableOption "Enables the sanic systemd service.";
package = lib.mkOption {
description = "Package to use.";
type = lib.types.package;
default = sanic;
};
ui = lib.mkOption {
description = "Setting for HTTP(S) UI.";
example = lib.literalExpression ''