From e03b06cf2012465d96034cb5c6c7be9ebe28f4a6 Mon Sep 17 00:00:00 2001 From: Ricardo Band Date: Mon, 12 Aug 2024 16:02:52 +0200 Subject: [PATCH] fix package definition --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0393d05..4e46461 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ''