tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/ups: replace activationScript via tmpfiles
nikstur
2 years ago
1b2b1364
88f63d11
+3
-5
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
monitoring
ups.nix
+3
-5
nixos/modules/services/monitoring/ups.nix
···
239
239
240
240
power.ups.schedulerRules = mkDefault "${pkgs.nut}/etc/upssched.conf.sample";
241
241
242
242
-
system.activationScripts.upsSetup = stringAfter [ "users" "groups" ]
243
243
-
''
244
244
-
# Used to store pid files of drivers.
245
245
-
mkdir -p /var/state/ups
246
246
-
'';
242
242
+
systemd.tmpfiles.rules = [
243
243
+
"d /var/state/ups -"
244
244
+
];
247
245
248
246
249
247
/*