fix package definition
This commit is contained in:
parent
b337c7a6a7
commit
e03b06cf20
|
@ -51,11 +51,16 @@
|
||||||
host=${cfg.backend.host}
|
host=${cfg.backend.host}
|
||||||
port=${cfg.backend.port}
|
port=${cfg.backend.port}
|
||||||
'';
|
'';
|
||||||
execCommand = "${pkgs.sanic}/bin/sanic -c '${configFile}'";
|
execCommand = "${cfg.package}/bin/sanic -c '${configFile}'";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.services.sanic = {
|
options.services.sanic = {
|
||||||
enable = lib.mkEnableOption "Enables the sanic systemd service.";
|
enable = lib.mkEnableOption "Enables the sanic systemd service.";
|
||||||
|
package = lib.mkOption {
|
||||||
|
description = "Package to use.";
|
||||||
|
type = lib.types.package;
|
||||||
|
default = sanic;
|
||||||
|
};
|
||||||
ui = lib.mkOption {
|
ui = lib.mkOption {
|
||||||
description = "Setting for HTTP(S) UI.";
|
description = "Setting for HTTP(S) UI.";
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
|
|
Loading…
Reference in a new issue