mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
qcow: enable biosboot only for x86
This commit is contained in:
parent
fb3ee0f618
commit
5b422c3cb0
@ -13,7 +13,13 @@
|
||||
|
||||
boot.growPartition = true;
|
||||
boot.kernelParams = [ "console=ttyS0" ];
|
||||
boot.loader.grub.device = lib.mkDefault "/dev/vda";
|
||||
boot.loader.grub.device = if (pkgs.stdenv.system == "x86_64-linux") then
|
||||
(lib.mkDefault "/dev/vda")
|
||||
else
|
||||
(lib.mkDefault "nodev");
|
||||
|
||||
boot.loader.grub.efiSupport = lib.mkIf (pkgs.stdenv.system != "x86_64-linux") (lib.mkDefault true);
|
||||
boot.loader.grub.efiInstallAsRemovable = lib.mkIf (pkgs.stdenv.system != "x86_64-linux") (lib.mkDefault true);
|
||||
boot.loader.timeout = 0;
|
||||
|
||||
|
||||
@ -21,6 +27,7 @@
|
||||
inherit lib config pkgs;
|
||||
diskSize = 8192;
|
||||
format = "qcow2";
|
||||
partitionTableType = "hybrid";
|
||||
};
|
||||
|
||||
formatAttr = "qcow";
|
||||
|
Loading…
Reference in New Issue
Block a user