nixos-config/profiles/boot.nix

22 lines
533 B
Nix
Raw Normal View History

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-12-05 15:57:02 +04:00
kernelParams = [ "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
"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
}