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.
This commit is contained in:
Ben Kelly 2018-12-13 18:17:21 -05:00 committed by Ben Kelly
parent 0c3208a8e4
commit b5b82b2cae
1 changed files with 4 additions and 0 deletions

View File

@ -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" ];