nixos/windmill: add a package option (#450986)

This commit is contained in:
Yt
2025-10-12 01:14:13 +00:00
committed by GitHub

View File

@@ -12,6 +12,8 @@ in
options.services.windmill = { options.services.windmill = {
enable = lib.mkEnableOption "windmill service"; enable = lib.mkEnableOption "windmill service";
package = lib.mkPackageOption pkgs "windmill" { };
serverPort = lib.mkOption { serverPort = lib.mkOption {
type = lib.types.port; type = lib.types.port;
default = 8001; default = 8001;
@@ -132,7 +134,7 @@ in
DynamicUser = true; DynamicUser = true;
# using the same user to simplify db connection # using the same user to simplify db connection
User = cfg.database.user; User = cfg.database.user;
ExecStart = "${pkgs.windmill}/bin/windmill"; ExecStart = lib.getExe cfg.package;
Restart = "always"; Restart = "always";
} }
// lib.optionalAttrs useUrlPath { // lib.optionalAttrs useUrlPath {