Change to systemd-boot
This commit is contained in:
+16
-8
@@ -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;
|
||||
|
||||
@@ -19,4 +19,14 @@
|
||||
environment.systemPackages = with pkgs; [
|
||||
oathToolkit
|
||||
];
|
||||
fileSystems = {
|
||||
"/boot" = {
|
||||
device = "/dev/nvme0n1p1";
|
||||
fsType = "auto";
|
||||
};
|
||||
"/windows" = {
|
||||
device = "/dev/nvme0n1p3";
|
||||
fsType = "ntfs-3g";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user