mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
Enable upower's systemd unit
This commit is contained in:
parent
223f04b3ca
commit
c2da812bd0
|
@ -78,6 +78,8 @@ in
|
||||||
#udev = pkgs.systemd;
|
#udev = pkgs.systemd;
|
||||||
slim = pkgs.slim.override { consolekit = null; };
|
slim = pkgs.slim.override { consolekit = null; };
|
||||||
lvm2 = pkgs.lvm2.override { udev = pkgs.systemd; };
|
lvm2 = pkgs.lvm2.override { udev = pkgs.systemd; };
|
||||||
|
upower = pkgs.upower.override { useSystemd = true; };
|
||||||
|
polkit = pkgs.polkit.override { useSystemd = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,6 +35,8 @@ with pkgs.lib;
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.upower ];
|
services.udev.packages = [ pkgs.upower ];
|
||||||
|
|
||||||
|
boot.systemd.packages = [ pkgs.upower ];
|
||||||
|
|
||||||
system.activationScripts.upower =
|
system.activationScripts.upower =
|
||||||
''
|
''
|
||||||
mkdir -m 0755 -p /var/lib/upower
|
mkdir -m 0755 -p /var/lib/upower
|
||||||
|
|
Loading…
Reference in a new issue