Merge pull request #17470 from layus/synaptics-conflict
Warn for conflict between synaptics and libinput
commitf044035a9eb83bb9b4be1c90cf9205e8723a1453
authorJoachim F <joachifm@users.noreply.github.com>
dateFri 5 Aug 2016, 19:26 (10 years ago)
parentfae62640f0be5e
nixos/modules/services/x11/hardware/libinput.nix+8
@@ -227,6 +227,14 @@ in {
227227 EndSection
228228 '';
229229
230+ assertions = [
231+ # already present in synaptics.nix
232+ /* {
233+ assertion = !config.services.xserver.synaptics.enable;
234+ message = "Synaptics and libinput are incompatible, you cannot enable both (in services.xserver).";
235+ } */
236+ ];
237+
230238 };
231239
232240}
nixos/modules/services/x11/hardware/synaptics.nix+7
@@ -205,6 +205,13 @@ in {
205205 EndSection
206206 '';
207207
208+ assertions = [
209+ {
210+ assertion = !config.services.xserver.libinput.enable;
211+ message = "Synaptics and libinput are incompatible, you cannot enable both (in services.xserver).";
212+ }
213+ ];
214+
208215 };
209216
210217}