From d08abe2419f8cd61ef8f94c1ecbe67d18139a32d Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 21 Jan 2025 22:42:36 +0100 Subject: [PATCH] [infradocs] enable metrics --- machines/infradocs/configuration.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/machines/infradocs/configuration.nix b/machines/infradocs/configuration.nix index 441e73ac..fece0764 100644 --- a/machines/infradocs/configuration.nix +++ b/machines/infradocs/configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, inputs, ... }: +{ self, config, lib, pkgs, inputs, ... }: with lib; @@ -9,16 +9,18 @@ with lib; }; imports = [ + self.nixosModules.malobeo.metrics ../durruti/documentation.nix ../modules/malobeo_user.nix ../modules/sshd.nix ]; - networking.firewall.allowedTCPPorts = [ 9002 ]; - - malobeo.metrics.logNginx = lib.mkForce true; - - users.users.promtail.extraGroups = [ "nginx" "systemd-journal" ]; + malobeo.metrics = { + enable = true; + enablePromtail = true; + logNginx = true; + lokiHost = "10.0.0.14"; + }; system.stateVersion = "22.11"; # Did you read the comment? }