nixos/libinput: only enable when X11 is enabled

This commit is contained in:
K900 2023-05-18 13:58:18 +03:00
parent 8d25ab1fc6
commit b451cc7668

View file

@ -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";