nixos/munin: move munin-cron to systemd.tmpfiles

to match with munin-node.
This commit is contained in:
Florian Jacob 2017-10-14 00:38:32 +02:00 committed by Domen Kožar
parent 3338985aab
commit 43f94ff5a9

View file

@ -215,9 +215,11 @@ in
};
};
system.activationScripts.munin-cron = stringAfter [ "users" "groups" ] ''
mkdir -p /var/{run,log,www,lib}/munin
chown -R munin:munin /var/{run,log,www,lib}/munin
'';
systemd.tmpfiles.rules = [
"d /var/run/munin 0755 munin munin -"
"d /var/log/munin 0755 munin munin -"
"d /var/www/munin 0755 munin munin -"
"d /var/lib/munin 0755 munin munin -"
];
})];
}