2021-06-26 23:48:15 +07:00
|
|
|
{ config, pkgs, ... }: {
|
2021-05-11 14:32:58 +07:00
|
|
|
boot = {
|
2021-07-15 19:57:49 +07:00
|
|
|
blacklistedKernelModules = [ "uvcvideo" ];
|
2021-05-11 22:31:26 +07:00
|
|
|
initrd = {
|
|
|
|
|
includeDefaultModules = false;
|
2021-07-15 20:18:51 +07:00
|
|
|
availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
2021-05-11 22:31:26 +07:00
|
|
|
};
|
2021-05-11 19:31:24 +07:00
|
|
|
kernel.sysctl = {
|
2021-06-04 13:00:29 +07:00
|
|
|
"kernel.core_pattern" = "|/bin/false";
|
2021-05-11 19:31:24 +07:00
|
|
|
"kernel.sysrq" = 1;
|
|
|
|
|
};
|
2021-05-11 14:32:58 +07:00
|
|
|
};
|
2021-07-16 08:44:05 +07:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
2021-05-15 09:05:55 +07:00
|
|
|
zramSwap.enable = true;
|
2021-05-11 14:32:58 +07:00
|
|
|
}
|