forked from mirrors/nixpkgs
upower: Add glib to $PATH
The upower daemon needs the gdbus command (which is weird given that upower links against dbus_glib, but ah well...). This fixes suspend in KDE with systemd.
This commit is contained in:
parent
fdea3ac3d2
commit
38229da940
|
@ -35,7 +35,15 @@ with pkgs.lib;
|
|||
|
||||
services.udev.packages = [ pkgs.upower ];
|
||||
|
||||
boot.systemd.packages = [ pkgs.upower ];
|
||||
boot.systemd.services.upower =
|
||||
{ description = "Power Management Daemon";
|
||||
path = [ pkgs.glib ]; # needed for gdbus
|
||||
serviceConfig =
|
||||
{ Type = "dbus";
|
||||
BusName = "org.freedesktop.UPower";
|
||||
ExecStart = "@${pkgs.upower}/libexec/upowerd upowerd";
|
||||
};
|
||||
};
|
||||
|
||||
system.activationScripts.upower =
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue