From a96a5f37d2a50880cc3c085bb34da490aa23ba88 Mon Sep 17 00:00:00 2001 From: Calvin Kim Date: Tue, 1 Oct 2019 19:43:27 +0900 Subject: [PATCH] nixos/cmt: Update error message for cmt Added clearer error message for the failed assertion with libinput --- nixos/modules/services/x11/hardware/cmt.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/hardware/cmt.nix b/nixos/modules/services/x11/hardware/cmt.nix index 95353e92098..5ac824c5e41 100644 --- a/nixos/modules/services/x11/hardware/cmt.nix +++ b/nixos/modules/services/x11/hardware/cmt.nix @@ -47,7 +47,12 @@ in { assertions = [ { assertion = !config.services.xserver.libinput.enable; - message = "cmt and libinput are incompatible, you cannot enable both (in services.xserver)."; + message = '' + cmt and libinput are incompatible, meaning you cannot enable them both. + To use cmt you need to disable libinput with `services.xserver.libinput.enable = false` + If you haven't enabled it in configuration.nix, it's enabled by default on a + different xserver module. + ''; } ]; };