diff --git a/nixos/modules/services/x11/hardware/libinput.nix b/nixos/modules/services/x11/hardware/libinput.nix index f3391c6e116..d2a5b5895e0 100644 --- a/nixos/modules/services/x11/hardware/libinput.nix +++ b/nixos/modules/services/x11/hardware/libinput.nix @@ -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";