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