diff --git a/nixos/modules/services/security/endlessh-go.nix b/nixos/modules/services/security/endlessh-go.nix index a44652e8afd8..b8b51acc81d0 100644 --- a/nixos/modules/services/security/endlessh-go.nix +++ b/nixos/modules/services/security/endlessh-go.nix @@ -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 ];