[fix] system: disable 8bitdoFix for linux 6.3+ #35
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue