nixos/ups: replace activationScript via tmpfiles

This commit is contained in:
nikstur 2023-10-19 23:56:01 +02:00
parent 88f63d1165
commit 1b2b1364de

View File

@ -239,11 +239,9 @@ in
power.ups.schedulerRules = mkDefault "${pkgs.nut}/etc/upssched.conf.sample";
system.activationScripts.upsSetup = stringAfter [ "users" "groups" ]
''
# Used to store pid files of drivers.
mkdir -p /var/state/ups
'';
systemd.tmpfiles.rules = [
"d /var/state/ups -"
];
/*