mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:55:22 +08:00
fix kernel 6.18 build
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ inputs:
|
|||||||
[{
|
[{
|
||||||
config =
|
config =
|
||||||
{
|
{
|
||||||
|
# TODO: use nixos module, enable kernel module
|
||||||
programs.obs-studio =
|
programs.obs-studio =
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user