mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
nixos/libinput: only enable when X11 is enabled
This commit is contained in:
parent
8d25ab1fc6
commit
b451cc7668
|
@ -261,7 +261,8 @@ in {
|
||||||
|
|
||||||
services.xserver.libinput = {
|
services.xserver.libinput = {
|
||||||
enable = mkEnableOption (lib.mdDoc "libinput") // {
|
enable = mkEnableOption (lib.mdDoc "libinput") // {
|
||||||
default = true;
|
default = config.services.xserver.enable;
|
||||||
|
defaultText = lib.literalExpression "config.services.xserver.enable";
|
||||||
};
|
};
|
||||||
mouse = mkConfigForDevice "mouse";
|
mouse = mkConfigForDevice "mouse";
|
||||||
touchpad = mkConfigForDevice "touchpad";
|
touchpad = mkConfigForDevice "touchpad";
|
||||||
|
|
Loading…
Reference in a new issue