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 = {
enable = mkEnableOption (lib.mdDoc "libinput") // {
default = true;
default = config.services.xserver.enable;
defaultText = lib.literalExpression "config.services.xserver.enable";
};
mouse = mkConfigForDevice "mouse";
touchpad = mkConfigForDevice "touchpad";