2021-01-21 22:13:53 +04:00
|
|
|
{ lib, pkgs, config, ... }: {
|
|
|
|
boot = {
|
2021-01-22 21:44:23 +04:00
|
|
|
loader = {
|
2021-06-08 21:01:45 +04:00
|
|
|
timeout = lib.mkForce 4;
|
2021-11-23 12:33:00 +04:00
|
|
|
grub.enable = false;
|
2021-01-23 23:21:51 +04:00
|
|
|
systemd-boot.enable = pkgs.system == "x86_64-linux";
|
|
|
|
};
|
2021-01-22 00:19:07 +04:00
|
|
|
kernelParams = [ "quiet" "scsi_mod.use_blk_mq=1" "modeset" "nofb" ]
|
2021-01-22 21:44:23 +04:00
|
|
|
++ lib.optionals (pkgs.system == "x86_64-linux") [
|
2021-01-22 00:19:07 +04:00
|
|
|
"rd.systemd.show_status=auto"
|
|
|
|
"rd.udev.log_priority=3"
|
|
|
|
"pti=off"
|
|
|
|
"spectre_v2=off"
|
|
|
|
];
|
2021-01-21 22:13:53 +04:00
|
|
|
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
|
|
consoleLogLevel = 3;
|
|
|
|
kernel.sysctl."vm.swappiness" = 0;
|
|
|
|
kernel.sysctl."kernel/sysrq" = 1;
|
|
|
|
};
|
2021-06-08 20:35:21 +04:00
|
|
|
persist.state.etcFiles = [ "machine-id" ];
|
2021-01-21 22:13:53 +04:00
|
|
|
}
|