tree-wide: switch to grub2 as default bootloader, instead of systemd-boot

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-01-06 18:41:52 +01:00
parent f478799fdd
commit 26e767fd61
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A
5 changed files with 20 additions and 24 deletions

View file

@ -3,11 +3,12 @@
{
boot.tmp.useTmpfs = true;
boot.loader.timeout = lib.mkForce 1;
boot.loader.systemd-boot = {
boot.loader.grub = {
enable = lib.mkDefault (!config.boot.isContainer);
configurationLimit = 2;
consoleMode = "max";
editor = false;
copyKernels = true;
fsIdentifier = "uuid";
configurationLimit = 8;
};
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;

View file

@ -10,18 +10,6 @@
system.stateVersion = "23.11";
boot.loader.systemd-boot.enable = false;
boot.loader.grub = {
enable = true;
copyKernels = true;
efiInstallAsRemovable = true;
efiSupport = true;
fsIdentifier = "uuid";
enableCryptodisk = true;
device = "nodev";
configurationLimit = 8;
};
boot.initrd = {
availableKernelModules = [ "hpsa" "sd_mod" "aesni_intel" "cryptd" "tg3" ];
kernelModules = [ "md_mod" "raid0" "raid1" ];

View file

@ -33,18 +33,13 @@ in {
../system/virtual-machine.nix
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "sd_mod" "sr_mod" ];
system.stateVersion = "23.05";
boot.loader.systemd-boot.enable = false;
boot.loader.grub = {
enable = true;
device = "/dev/sda";
};
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "sd_mod" "sr_mod" ];
boot.loader.grub.device = "/dev/sda";
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
system.stateVersion = "23.05";
fileSystems."/" = {
device = "/dev/disk/by-uuid/0ec38da7-36b2-437c-b4dd-45d5ed620979";
fsType = "btrfs";

View file

@ -1,6 +1,13 @@
{
imports = [ ../common ../services/openssh.nix ../system/headless.nix ];
boot.loader.grub = {
efiInstallAsRemovable = true;
efiSupport = true;
enableCryptodisk = true;
device = "nodev";
};
boot.kernelParams = [ "panic=10" "mitigations=off" ];
boot.kernelModules = [ "kvm-intel" ];

View file

@ -5,6 +5,11 @@
boot.kernelParams = [ "audit=0" ];
boot.loader.grub = {
efiSupport = true;
device = "nodev";
};
documentation = {
man.generateCaches = true;
man.man-db.enable = true;