mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nixos/endlessh-go: allow overriding package
allow overriding the endlessh-go package used in the service
This commit is contained in:
parent
13c7cdc211
commit
15b474ae05
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user