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:
Bjørn Forsman
2024-08-13 09:11:02 +02:00
parent bcda41d548
commit 53d5d2be6d

View File

@@ -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 = {