3
0
Fork 0
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:
Eelco Dolstra 2012-10-04 16:38:31 -04:00
parent fdea3ac3d2
commit 38229da940

View file

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