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. # Use the systemd-boot EFI boot loader.
#boot.loader.systemd-boot.enable = true; #boot.loader.systemd-boot.enable = true;
boot = { boot = {
supportedFilesystems = [ "ntfs" ]; supportedFilesystems = [ "ntfs" ];
loader = { loader = {
systemd-boot = {
enable = true;
configurationLimit = 10;
extraEntries = {
"Windows.conf" = (lib.strings.concatStringsSep "\n" [
"title Windows"
"efi /EFI/Windows/bootmgfw.efi"
]);
};
};
grub = { grub = {
enable = false;
device = "/dev/nvme0n1"; device = "/dev/nvme0n1";
useOSProber = true; useOSProber = true;
efiSupport = true;
extraEntries = '' extraEntries = ''
menuentry "Windows" --class windows --class os { menuentry "Windows" --class windows --class os {
insmod ntfs insmod ntfs
chainloader (hd0,2)/Windows/Boot/EFI/bootmgfw.efi chainloader (hd0,0)/EFI/Windows/bootmgfw.efi
} }
''; '';
}; };
efi.canTouchEfiVariables = true; #efi.canTouchEfiVariables = true;
}; };
}; };
networking.interfaces.enp4s0.useDHCP = true; networking.interfaces.enp4s0.useDHCP = true;
+10
View File
@@ -19,4 +19,14 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
oathToolkit oathToolkit
]; ];
fileSystems = {
"/boot" = {
device = "/dev/nvme0n1p1";
fsType = "auto";
};
"/windows" = {
device = "/dev/nvme0n1p3";
fsType = "ntfs-3g";
};
};
} }