fix kernel 6.18 build

This commit is contained in:
2025-12-05 09:36:28 +08:00
parent bf29b9d756
commit c12842ea3c
3 changed files with 5 additions and 6 deletions

View File

@@ -13,7 +13,8 @@ inputs:
{ joystick = genericOption; printer = genericOption; sound = genericOption; bolt = genericOption; }; { joystick = genericOption; printer = genericOption; sound = genericOption; bolt = genericOption; };
config = let inherit (inputs.config.nixos) hardware; in inputs.lib.mkMerge config = let inherit (inputs.config.nixos) hardware; in inputs.lib.mkMerge
[ [
(inputs.lib.mkIf (hardware.joystick != null) { hardware = { xone.enable = true; xpadneo.enable = true; }; }) # TODO: enable after fix
# (inputs.lib.mkIf (hardware.joystick != null) { hardware = { xone.enable = true; xpadneo.enable = true; }; })
( (
inputs.lib.mkIf (hardware.printer != null) inputs.lib.mkIf (hardware.printer != null)
{ {

View File

@@ -79,6 +79,7 @@ inputs:
[{ [{
config = config =
{ {
# TODO: use nixos module, enable kernel module
programs.obs-studio = programs.obs-studio =
{ {
enable = true; enable = true;

View File

@@ -45,11 +45,8 @@ inputs:
] ]
# touchscreen for one # touchscreen for one
++ (inputs.lib.optionals (inputs.config.nixos.model.arch == "x86_64") [ "pinctrl-tigerlake" ]); ++ (inputs.lib.optionals (inputs.config.nixos.model.arch == "x86_64") [ "pinctrl-tigerlake" ]);
extraModulePackages = with inputs.config.boot.kernelPackages; extraModulePackages = inputs.lib.optionals (inputs.pkgs.stdenv.hostPlatform.linuxArch == "x86_64")
[ [ inputs.config.boot.kernelPackages.zenpower ];
v4l2loopback
(if inputs.pkgs.stdenv.hostPlatform.linuxArch == "x86_64" then zenpower else inputs.pkgs.emptyDirectory)
];
# force i2c-hid-acpi to load after pinctrl-tigerlake # force i2c-hid-acpi to load after pinctrl-tigerlake
extraModprobeConfig = "softdep i2c-hid-acpi pre: pinctrl-tigerlake"; extraModprobeConfig = "softdep i2c-hid-acpi pre: pinctrl-tigerlake";
kernelParams = inputs.lib.mkMerge kernelParams = inputs.lib.mkMerge