mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
nixos/ups: replace activationScript via tmpfiles
This commit is contained in:
parent
88f63d1165
commit
1b2b1364de
@ -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 -"
|
||||
];
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user