Unverified Commit c0f2a3cc authored by Philip Taron's avatar Philip Taron
Browse files

nixos/endlessh-go: fix eval

parent 7bb552f1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -94,14 +94,14 @@ in
          Restart = "always";
          ExecStart =
            with cfg;
            concatStringsSep " " (
            lib.concatStringsSep " " (
              [
                (lib.getExe cfg.package)
                "-logtostderr"
                "-host=${listenAddress}"
                "-port=${toString port}"
              ]
              ++ optionals prometheus.enable [
              ++ lib.optionals prometheus.enable [
                "-enable_prometheus"
                "-prometheus_host=${prometheus.listenAddress}"
                "-prometheus_port=${toString prometheus.port}"
@@ -149,7 +149,7 @@ in
        };
    };

    networking.firewall.allowedTCPPorts = with cfg; optionals openFirewall [ port ];
    networking.firewall.allowedTCPPorts = with cfg; lib.optionals openFirewall [ port ];
  };

  meta.maintainers = with lib.maintainers; [ azahi ];