nixos/endlessh-go: allow overriding package

allow overriding the endlessh-go package used in the service
This commit is contained in:
Vivek Revankar 2024-09-04 22:28:40 -07:00
parent 13c7cdc211
commit 15b474ae05

View File

@ -9,6 +9,8 @@ in
options.services.endlessh-go = {
enable = mkEnableOption "endlessh-go service";
package = mkPackageOption pkgs "endlessh-go" { };
listenAddress = mkOption {
type = types.str;
default = "0.0.0.0";
@ -86,7 +88,7 @@ in
{
Restart = "always";
ExecStart = with cfg; concatStringsSep " " ([
"${pkgs.endlessh-go}/bin/endlessh-go"
(lib.getExe cfg.package)
"-logtostderr"
"-host=${listenAddress}"
"-port=${toString port}"