mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
nixos/ups: restart upsdrv.service on config changes
Or else new configuration won't take effect until the next boot (or if
the user manually restarts the service).
(cherry picked from commit dc7379e04f)
This commit is contained in:
@@ -560,6 +560,9 @@ in
|
||||
};
|
||||
environment.NUT_CONFPATH = "/etc/nut";
|
||||
environment.NUT_STATEPATH = "/var/lib/nut";
|
||||
restartTriggers = [
|
||||
config.environment.etc."nut/ups.conf".source
|
||||
];
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
|
||||
Reference in New Issue
Block a user