[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
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:
parent
0b07c37d93
commit
a4f278f3ba
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