[fix] system: disable 8bitdoFix for linux 6.3+ #35

Merged
jalil merged 1 commit from disable-8bitdo-fix into main 2024-07-23 21:50:25 +02:00
Showing only changes of commit a4f278f3ba - Show all commits

View file

@ -7,6 +7,7 @@
let let
cfg = config.jconfig.gui; cfg = config.jconfig.gui;
enable = config.jconfig.enable && cfg.enable; enable = config.jconfig.enable && cfg.enable;
linuxOlderThan6_3 = lib.versionOlder config.boot.kernelPackages.kernel.version "6.3";
in in
{ {
config = lib.mkMerge [ config = lib.mkMerge [
@ -92,7 +93,7 @@ in
steam-hardware.enable = cfg.steamHardwareSupport; steam-hardware.enable = cfg.steamHardwareSupport;
}; };
}) })
(lib.mkIf (enable && cfg."8bitdoFix") { (lib.mkIf (enable && linuxOlderThan6_3 && cfg."8bitdoFix") {
# Udev rules to start or stop systemd service when controller is connected or disconnected # Udev rules to start or stop systemd service when controller is connected or disconnected
services.udev.extraRules = '' services.udev.extraRules = ''
# May vary depending on your controller model, find product id using 'lsusb' # May vary depending on your controller model, find product id using 'lsusb'