Files
nixos/hosts/jude/boot.nix
T

52 lines
1.7 KiB
Nix
Raw Normal View History

2023-08-17 13:57:30 -05:00
{ lib, ... }:
2022-04-27 11:23:11 -05:00
{
# Use the systemd-boot EFI boot loader.
2023-08-17 11:11:03 -05:00
boot = {
supportedFilesystems = [ "ntfs" ];
loader = {
2023-08-17 13:57:30 -05:00
systemd-boot = {
2023-08-18 19:12:57 -05:00
enable = true;
2023-08-17 13:57:30 -05:00
configurationLimit = 10;
extraEntries = {
"Windows.conf" = (lib.strings.concatStringsSep "\n" [
"title Windows"
2023-08-18 19:12:57 -05:00
"efi /EFI/Microsoft/EFI/bootmgfw.efi"
2023-08-17 13:57:30 -05:00
]);
2023-12-05 13:20:04 -06:00
"Pop.conf" = (lib.strings.concatStringsSep "\n" [
"title Pop!_OS"
"linux /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/vmlinuz.efi"
"initrd /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/initrd.img"
"options root=UUID=e4918d10-538d-42ad-b35d-a1ee2ed2a433 ro quiet loglevel=0 systemd.show_status=false splash"
]);
"Pop-oldkern.conf" = (lib.strings.concatStringsSep "\n" [
"title Pop!_OS"
"linux /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/vmlinuz-previous.efi"
"initrd /EFI/Pop_OS-e4918d10-538d-42ad-b35d-a1ee2ed2a433/initrd.img-previous"
"options root=UUID=e4918d10-538d-42ad-b35d-a1ee2ed2a433 ro quiet loglevel=0 systemd.show_status=false splash"
]);
"Pop-recovery.conf" = (lib.strings.concatStringsSep "\n" [
"title Pop!_OS Recovery"
"linux /EFI/Recovery-1E97-BC0F/vmlinuz.efi"
"initrd /EFI/Recovery-1E97-BC0F/initrd.gz"
"options boot=casper hostname=recovery userfullname=Recovery username=recovery live-media-path=/casper-1E97-BC0F noprompt "
]);
2023-08-17 13:57:30 -05:00
};
};
2023-08-17 11:11:03 -05:00
grub = {
2023-08-18 19:12:57 -05:00
enable = false;
2023-08-17 11:11:03 -05:00
device = "/dev/nvme0n1";
useOSProber = true;
2023-08-17 13:57:30 -05:00
efiSupport = true;
2023-08-17 11:11:03 -05:00
extraEntries = ''
menuentry "Windows" --class windows --class os {
2023-08-17 13:57:30 -05:00
insmod ntfs
chainloader (hd0,0)/EFI/Windows/bootmgfw.efi
2023-08-17 11:11:03 -05:00
}
'';
};
2023-08-17 13:57:30 -05:00
#efi.canTouchEfiVariables = true;
2023-08-17 11:11:03 -05:00
};
};
2022-04-27 11:23:11 -05:00
}