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.
|
# 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;
|
||||||
|
|||||||
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user