From b5b82b2caee7bb2c0ea80353397fc7fadf470025 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Thu, 13 Dec 2018 18:17:21 -0500 Subject: [PATCH] nixos/munin: require DejaVu fonts if enabled munin-graph is hardcoded to use DejaVu Mono for the graph legends; if it can't find it, there's no guarantee it finds a monospaced font at all, and if it can't find a monospaced font the legends come out badly misformatted. --- nixos/modules/services/monitoring/munin.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix index dcdad6fac1b..431d0397546 100644 --- a/nixos/modules/services/monitoring/munin.nix +++ b/nixos/modules/services/monitoring/munin.nix @@ -223,6 +223,10 @@ in }) (mkIf cronCfg.enable { + # Munin is hardcoded to use DejaVu Mono and the graphs come out wrong if + # it's not available. + fonts.fonts = [ pkgs.dejavu_fonts ]; + systemd.timers.munin-cron = { description = "batch Munin master programs"; wantedBy = [ "timers.target" ];