fix aarch64 build

This commit is contained in:
2025-08-12 15:59:58 +08:00
parent 457bd2571c
commit eda474f7d6
3 changed files with 13 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ inputs:
swap = [ "/nix/swap/swap" ];
};
network = {};
grub = null;
};
services =
{

View File

@@ -83,5 +83,11 @@ inputs:
};
}
])
({});
({
boot.loader =
{
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
});
}

View File

@@ -39,7 +39,11 @@ inputs:
"bridge"
]
++ (inputs.lib.optionals (kernel.variant != "nixos") [ "crypto_simd" ]);
extraModulePackages = with inputs.config.boot.kernelPackages; [ v4l2loopback zenpower ];
extraModulePackages = with inputs.config.boot.kernelPackages;
[
v4l2loopback
(if inputs.pkgs.stdenv.hostPlatform.linuxArch == "x86_64" then zenpower else inputs.pkgs.emptyDirectory)
];
# force i2c-hid-acpi to load after pinctrl-tigerlake
extraModprobeConfig = "softdep i2c-hid-acpi pre: pinctrl-tigerlake";
kernelParams = [ "delayacct" ];