Enable upower's systemd unit

This commit is contained in:
Eelco Dolstra 2012-08-21 11:29:59 -04:00
parent 223f04b3ca
commit c2da812bd0
2 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,8 @@ in
#udev = pkgs.systemd;
slim = pkgs.slim.override { consolekit = null; };
lvm2 = pkgs.lvm2.override { udev = pkgs.systemd; };
upower = pkgs.upower.override { useSystemd = true; };
polkit = pkgs.polkit.override { useSystemd = true; };
};
};

View File

@ -35,6 +35,8 @@ with pkgs.lib;
services.udev.packages = [ pkgs.upower ];
boot.systemd.packages = [ pkgs.upower ];
system.activationScripts.upower =
''
mkdir -m 0755 -p /var/lib/upower