From 36cf352c67977fed03d32619158671a102df74ef Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 8 Dec 2024 12:47:28 -0600 Subject: [PATCH] removed variable --- nixosModules/services/loki.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixosModules/services/loki.nix b/nixosModules/services/loki.nix index 132599c..4eb53a3 100644 --- a/nixosModules/services/loki.nix +++ b/nixosModules/services/loki.nix @@ -1,6 +1,8 @@ -{ pkgs, lokiPort ? 3100, ... }: +{ pkgs, config, lokiPort ? 3100, ... }: { - networking.firewall.allowedTCPPorts = [ lokiPort ]; + networking.firewall.allowedTCPPorts = [ + config.services.loki.configuration.server.http_listen_port + ]; environment.systemPackages = with pkgs; [ (pkgs.writeShellScriptBin "loki-check" "curl http://localhost:${builtins.toString lokiPort}/ready")