From b00ffb99b5d57c37fb4bba20dc9154cbe167b42f Mon Sep 17 00:00:00 2001 From: arcnmx Date: Fri, 9 Aug 2024 12:16:11 -0700 Subject: [PATCH] chore(klipper): silence verbose logs --- nixos/klipper.nix | 8 ++++++++ nixos/moonraker.nix | 3 +++ 2 files changed, 11 insertions(+) diff --git a/nixos/klipper.nix b/nixos/klipper.nix index 01b05da4..7f05bb13 100644 --- a/nixos/klipper.nix +++ b/nixos/klipper.nix @@ -15,4 +15,12 @@ in { settings = {}; }; }; + systemd = mkIf cfg.enable { + services.klipper = { + restartIfChanged = false; + serviceConfig.LogFilterPatterns = [ + ''~INFO:root:Stats'' + ]; + }; + }; } diff --git a/nixos/moonraker.nix b/nixos/moonraker.nix index f2e16168..e377ceeb 100644 --- a/nixos/moonraker.nix +++ b/nixos/moonraker.nix @@ -48,6 +48,9 @@ }; }; }; + systemd.services.moonraker = mkIf cfg.enable { + # TODO: restartIfChanged = false; + }; networking.firewall = mkIf cfg.enable { interfaces.lan.allowedTCPPorts = [ cfg.port