Warn for conflict between synaptics and libinput

Changed files
+15
nixos
modules
services
+8
nixos/modules/services/x11/hardware/libinput.nix
···
EndSection
'';
+
assertions = [
+
# already present in synaptics.nix
+
/* {
+
assertion = !config.services.xserver.synaptics.enable;
+
message = "Synaptics and libinput are incompatible, you cannot enable both (in services.xserver).";
+
} */
+
];
+
};
}
+7
nixos/modules/services/x11/hardware/synaptics.nix
···
EndSection
'';
+
assertions = [
+
{
+
assertion = !config.services.xserver.libinput.enable;
+
message = "Synaptics and libinput are incompatible, you cannot enable both (in services.xserver).";
+
}
+
];
+
};
}