Files
nixos/hosts/jude/boot.nix
T
2023-08-17 14:52:18 -05:00

36 lines
756 B
Nix

{ lib, ... }:
{
# Use the systemd-boot EFI boot loader.
#boot.loader.systemd-boot.enable = true;
boot = {
supportedFilesystems = [ "ntfs" ];
loader = {
systemd-boot = {
enable = false;
configurationLimit = 10;
extraEntries = {
"Windows.conf" = (lib.strings.concatStringsSep "\n" [
"title Windows"
"efi /EFI/Windows/bootmgfw.efi"
]);
};
};
grub = {
enable = true;
device = "/dev/nvme0n1";
useOSProber = true;
efiSupport = true;
extraEntries = ''
menuentry "Windows" --class windows --class os {
insmod ntfs
chainloader (hd0,0)/EFI/Windows/bootmgfw.efi
}
'';
};
#efi.canTouchEfiVariables = true;
};
};
networking.interfaces.enp4s0.useDHCP = true;
}