Merge pull request #107275 from bjornfor/fix-build-vm-with-bootloader-with-efi
nixos: fix "nixos-rebuild build-vm-with-bootloader" for EFI systems
This commit is contained in:
commit
20257280d9
@ -605,6 +605,10 @@ in
|
|||||||
|
|
||||||
virtualisation.bootDevice = mkDefault (driveDeviceName 1);
|
virtualisation.bootDevice = mkDefault (driveDeviceName 1);
|
||||||
|
|
||||||
|
virtualisation.useEFIBoot = mkDefault
|
||||||
|
(config.boot.loader.systemd-boot.enable ||
|
||||||
|
config.boot.loader.efi.canTouchEfiVariables);
|
||||||
|
|
||||||
virtualisation.pathsInNixDB = [ config.system.build.toplevel ];
|
virtualisation.pathsInNixDB = [ config.system.build.toplevel ];
|
||||||
|
|
||||||
# FIXME: Consolidate this one day.
|
# FIXME: Consolidate this one day.
|
||||||
|
@ -9,7 +9,6 @@ with pkgs.lib;
|
|||||||
let
|
let
|
||||||
common = {
|
common = {
|
||||||
virtualisation.useBootLoader = true;
|
virtualisation.useBootLoader = true;
|
||||||
virtualisation.useEFIBoot = true;
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
environment.systemPackages = [ pkgs.efibootmgr ];
|
environment.systemPackages = [ pkgs.efibootmgr ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user