[fix] system: disable 8bitdoFix for linux 6.3+
All checks were successful
/ check (push) Successful in 23s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 2s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 11s
/ update-lockfile (push) Has been skipped

This commit is contained in:
Jalil David Salamé Messina 2024-07-23 21:43:59 +02:00
parent 0b07c37d93
commit a4f278f3ba
Signed by: jalil
GPG key ID: F016B9E770737A0B

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'