Commit dc7379e0 authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

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).
parent 8a16a58f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 = {