Warn for conflict between synaptics and libinput
commit0f0be5e498ac29e9011c7a29a7612871c0bc393f
authorGuillaume Maudoux <layus.on@gmail.com>
dateWed 3 Aug 2016, 08:15 (10 years ago)
parent3875690
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}