Updated Boot-Configuration
All checks were successful
/ Check Nix Flake (push) Successful in 2m0s

This commit is contained in:
Kaybee 2025-04-23 23:41:02 +02:00
parent 18c1a197ad
commit 084d54dc03
Signed by: kb01
SSH key fingerprint: SHA256:gP6opHVPcRQWO2nBbCcsXmXLtGrxzdRbP+frT4AAJFs

View file

@ -8,36 +8,34 @@
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.kernelParams = [ "elevator=noop" "boot.shell_on_fail" "ip=dhcp" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
networking.hostId = "c61a0c21"; networking.hostId = "c61a0c21";
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# Grub boot loader # Bootloader
boot.loader.efi.canTouchEfiVariables = true; boot.loader = {
boot.loader.efi.efiSysMountPoint = "/boot"; efi = {
boot.loader.grub.enable = true; canTouchEfiVariables = true;
boot.loader.grub.copyKernels = true; efiSysMountPoint = "/boot"; # use the same mount point here.
boot.loader.grub.efiSupport = true; };
boot.loader.grub.device = "nodev"; grub = {
#boot.loader.grub.devices = [ enable = true;
# "/dev/disk/by-uuid/90A1-2F0B" version = 2;
# "/dev/disk/by-uuid/90F1-EAEB" copyKernels = true;
#]; efiSupport = true;
boot.loader.grub.mirroredBoots = [ mirroredBoots = [
{ {devices = [ "/dev/nvme0n1" ]; path = "/boot";}
devices = [ "/dev/disk/by-uuid/90A1-2F0B" ]; {devices = [ "/dev/nvme1n1" ]; path = "/boot1";}
path = "/boot"; ];
} };
{ };
devices = [ "/dev/disk/by-uuid/90F1-EAEB" ]; # Uncomment [on a working system] to ensure extra safeguards are active that zfs uses to protect zfs pools:
path = "/boot-fallback"; #boot.zfs.forceImportAll = false;
} #boot.zfs.forceImportRoot = false;
# The first Boot Device is Mounted on /boot and gets added Automatically
];
# Remote Filesystem(s) unlocking # Remote Filesystem(s) unlocking
boot.kernelParams = [ "ip=dhcp" ];
boot.initrd.network.enable = true; boot.initrd.network.enable = true;
boot.initrd.network.ssh = { boot.initrd.network.ssh = {
enable = true; enable = true;
@ -53,13 +51,13 @@
''; '';
# Filesystems # Filesystems
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/90A1-2F0B"; device = "/dev/disk/by-uuid/7C96-7E8A";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
fileSystems."/boot-fallback" = { fileSystems."/boot1" = {
device = "/dev/disk/by-uuid/90F1-EAEB"; device = "/dev/disk/by-uuid/7C97-3483";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };