1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

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