nixos-config/modules/boot.nix

24 lines
590 B
Nix
Raw Normal View History

2021-01-21 22:13:53 +04:00
{ lib, pkgs, config, ... }: {
boot = {
loader.timeout = 1;
loader.systemd-boot.enable = lib.mkIf (pkgs.system == "x86_64-linux") true;
loader.grub.enable = false;
2021-01-22 00:19:07 +04:00
kernelParams = [ "quiet" "scsi_mod.use_blk_mq=1" "modeset" "nofb" ]
++ lib.optional (pkgs.system == "x86_64-linux") [
"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;
};
}