Unverified Commit 4e5de4ef authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

nixos/dwm-status: don't disable upower

Previously if the user enables this module but doesn't use the battery
feature, the user can't enable upower (at least without lib.mkForce).
parent c04d5652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ in

  config = lib.mkIf cfg.enable {

    services.upower.enable = lib.elem "battery" cfg.order;
    services.upower.enable = lib.mkIf (lib.elem "battery" cfg.order) true;

    systemd.user.services.dwm-status = {
      description = "Highly performant and configurable DWM status service";