From a4f278f3ba0eb92d0739a6ac4964184e3b57fcc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Tue, 23 Jul 2024 21:43:59 +0200 Subject: [PATCH] [fix] system: disable 8bitdoFix for linux 6.3+ --- system/gui/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/gui/default.nix b/system/gui/default.nix index d12b0a8..aedd1ee 100644 --- a/system/gui/default.nix +++ b/system/gui/default.nix @@ -7,6 +7,7 @@ let cfg = config.jconfig.gui; enable = config.jconfig.enable && cfg.enable; + linuxOlderThan6_3 = lib.versionOlder config.boot.kernelPackages.kernel.version "6.3"; in { config = lib.mkMerge [ @@ -92,7 +93,7 @@ in 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 services.udev.extraRules = '' # May vary depending on your controller model, find product id using 'lsusb' -- 2.47.0