diff options
author | Ben Kelly <bk@ancilla.ca> | 2018-12-13 18:17:21 -0500 |
---|---|---|
committer | Ben Kelly <btk@google.com> | 2019-02-04 20:17:26 -0500 |
commit | b5b82b2caee7bb2c0ea80353397fc7fadf470025 (patch) | |
tree | f486e06b32dd07a7db3beedc2e574529eef47b74 | |
parent | 0c3208a8e462c95a1deeb5bd7ab3c467ff2eec49 (diff) | |
download | nixlib-b5b82b2caee7bb2c0ea80353397fc7fadf470025.tar nixlib-b5b82b2caee7bb2c0ea80353397fc7fadf470025.tar.gz nixlib-b5b82b2caee7bb2c0ea80353397fc7fadf470025.tar.bz2 nixlib-b5b82b2caee7bb2c0ea80353397fc7fadf470025.tar.lz nixlib-b5b82b2caee7bb2c0ea80353397fc7fadf470025.tar.xz nixlib-b5b82b2caee7bb2c0ea80353397fc7fadf470025.tar.zst nixlib-b5b82b2caee7bb2c0ea80353397fc7fadf470025.zip |
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.
-rw-r--r-- | nixos/modules/services/monitoring/munin.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix index dcdad6fac1ba..431d03975460 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" ]; |