summary refs log tree commit diff
path: root/nixos/modules/services/monitoring
diff options
context:
space:
mode:
authorFlorian Jacob <projects+git@florianjacob.de>2017-10-14 00:38:32 +0200
committerDomen Kožar <domen@enlambda.com>2017-10-21 11:27:42 +0100
commit43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1 (patch)
tree90c8c88679b849eb828ac5a0ec107a017f1f0eca /nixos/modules/services/monitoring
parent3338985aab3af2793a2b81473ee98d292a1ed806 (diff)
downloadnixlib-43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1.tar
nixlib-43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1.tar.gz
nixlib-43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1.tar.bz2
nixlib-43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1.tar.lz
nixlib-43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1.tar.xz
nixlib-43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1.tar.zst
nixlib-43f94ff5a9bba9608b078e3ff9c74d66d3ab01f1.zip
nixos/munin: move munin-cron to systemd.tmpfiles
to match with munin-node.
Diffstat (limited to 'nixos/modules/services/monitoring')
-rw-r--r--nixos/modules/services/monitoring/munin.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/modules/services/monitoring/munin.nix b/nixos/modules/services/monitoring/munin.nix
index 0ec201a0eb16..cc6d51f0ef1b 100644
--- a/nixos/modules/services/monitoring/munin.nix
+++ b/nixos/modules/services/monitoring/munin.nix
@@ -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 -"
+    ];
   })];
 }