diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index 63f886e..b559028 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -1,4 +1,4 @@ -{ config, user, ... }: +{ config, ... }: { imports = [ @@ -17,22 +17,25 @@ allowedUDPPorts = [ config.services.tailscale.port ]; }; - boot.loader = { efi = { - canTouchEfiVariables = true; efiSysMountPoint = "/boot"; + boot.loader = { + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot"; }; grub = { devices = [ "nodev" ]; efiSupport = true; enable = true; - useOSProber = true; - # extraEntries = '' -# menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows - # --class os $menuentry_id_option 'osprober-efi-364F-BE7A' { - # insmod part_gpt insmod fat search --no-floppy --fs-uuid - # --set=root 364F-BE7A chainloader - # /efi/Microsoft/Boot/bootmgfw.efi -# } - # ''; + useOSProber = false; + extraEntries = '' +menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-364F-BE7A' { + insmod part_gpt + insmod fat + search --no-floppy --fs-uuid --set=root 364F-BE7A + chainloader /efi/Microsoft/Boot/bootmgfw.efi +} + + ''; }; };