UPS: Make sure the driver pid files can be stored.
svn path=/nixos/trunk/; revision=27979
This commit is contained in:
parent
ef63ea98f4
commit
66ffeb3fd9
@ -246,6 +246,13 @@ 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
|
||||
'';
|
||||
|
||||
|
||||
/*
|
||||
users.extraUsers = [
|
||||
{ name = "nut";
|
||||
|
Loading…
Reference in New Issue
Block a user