udisks2: use tmpfiles instead of activation script to create /var/lib/udisks2

This commit is contained in:
Florian Klink 2019-10-16 19:31:58 +02:00 committed by worldofpeace
parent b04b354e2c
commit e397b949a9

View File

@ -34,10 +34,7 @@ with lib;
services.dbus.packages = [ pkgs.udisks2 ];
system.activationScripts.udisks2 =
''
mkdir -m 0755 -p /var/lib/udisks2
'';
systemd.tmpfiles.rules = [ "d /var/lib/udisks2 0755 root root -" ];
services.udev.packages = [ pkgs.udisks2 ];