2023-11-04 16:12:45 +05:30
|
|
|
{ lib
|
|
|
|
, pkgs
|
|
|
|
, ...
|
2023-05-18 16:11:26 +05:30
|
|
|
}: {
|
2023-03-15 22:11:59 +05:30
|
|
|
boot = {
|
2023-04-07 19:51:16 +05:30
|
|
|
consoleLogLevel = 3;
|
2023-03-15 22:11:59 +05:30
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [
|
|
|
|
"xhci_pci"
|
|
|
|
"thunderbolt"
|
|
|
|
"vmd"
|
|
|
|
"nvme"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
"rtsx_pci_sdmmc"
|
|
|
|
];
|
2024-06-08 22:16:47 +05:30
|
|
|
kernelModules = [ "i915" "dm-snapshot" ];
|
2023-04-07 19:51:52 +05:30
|
|
|
systemd.enable = true;
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
2023-11-04 16:12:45 +05:30
|
|
|
kernelModules = [ "kvm-intel" ];
|
2024-06-02 23:42:46 +05:30
|
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
2023-11-04 16:12:45 +05:30
|
|
|
kernelParams = [ "quiet" ];
|
2023-04-07 19:51:52 +05:30
|
|
|
kernel.sysctl = {
|
2024-01-04 21:51:23 +05:30
|
|
|
"vm.swappiness" = 10;
|
2024-05-27 05:24:05 +05:30
|
|
|
"vm.dirty_ratio" = 3;
|
2023-04-07 19:51:52 +05:30
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
}
|