mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
modules.system.kernel: set btrfs read policy
This commit is contained in:
@@ -50,7 +50,11 @@ inputs:
|
||||
];
|
||||
# force i2c-hid-acpi to load after pinctrl-tigerlake
|
||||
extraModprobeConfig = "softdep i2c-hid-acpi pre: pinctrl-tigerlake";
|
||||
kernelParams = [ "delayacct" ];
|
||||
kernelParams = inputs.lib.mkMerge
|
||||
[
|
||||
[ "delayacct" ]
|
||||
(inputs.lib.mkIf (builtins.elem "btrfs" kernel.patches) [ "btrfs.read_policy=queue" ])
|
||||
];
|
||||
kernelPackages = inputs.lib.mkIf (kernel.variant != null)
|
||||
{
|
||||
nixos = inputs.pkgs.linuxPackages;
|
||||
|
||||
Reference in New Issue
Block a user