Change to systemd-boot

This commit is contained in:
Greg Hellings
2023-08-17 13:57:30 -05:00
parent 5ec9135cbf
commit 791b276e37
2 changed files with 26 additions and 8 deletions
+16 -8
View File
@@ -1,26 +1,34 @@
{ ... }:
{ lib, ... }:
{
#fileSystems."/boot/efi" = {
# device = "/dev/by-uuid/9466C36266C34428";
# fsType = "auto";
#};
# Use the systemd-boot EFI boot loader.
#boot.loader.systemd-boot.enable = true;
boot = {
supportedFilesystems = [ "ntfs" ];
loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
extraEntries = {
"Windows.conf" = (lib.strings.concatStringsSep "\n" [
"title Windows"
"efi /EFI/Windows/bootmgfw.efi"
]);
};
};
grub = {
enable = false;
device = "/dev/nvme0n1";
useOSProber = true;
efiSupport = true;
extraEntries = ''
menuentry "Windows" --class windows --class os {
insmod ntfs
chainloader (hd0,2)/Windows/Boot/EFI/bootmgfw.efi
insmod ntfs
chainloader (hd0,0)/EFI/Windows/bootmgfw.efi
}
'';
};
efi.canTouchEfiVariables = true;
#efi.canTouchEfiVariables = true;
};
};
networking.interfaces.enp4s0.useDHCP = true;