From b451cc766836b00956c65e262b06b126e88640ab Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 18 May 2023 13:58:18 +0300 Subject: [PATCH] nixos/libinput: only enable when X11 is enabled --- nixos/modules/services/x11/hardware/libinput.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/hardware/libinput.nix b/nixos/modules/services/x11/hardware/libinput.nix index f3391c6e1169..d2a5b5895e0a 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";