mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
formats: add raw-efi
This commit is contained in:
parent
c26fd82c4a
commit
6ca87aa8e6
@ -44,6 +44,7 @@ openstack | qcow2 image for openstack
|
||||
cloudstack | qcow2 image for cloudstack
|
||||
qcow | qcow2 image
|
||||
raw | raw image
|
||||
raw-efi | raw image with efi support
|
||||
virtualbox | virtualbox VM
|
||||
vm | only used as a qemu-kvm runner
|
||||
vm-nogui | same as before, but without a GUI
|
||||
|
17
formats/raw-efi.nix
Normal file
17
formats/raw-efi.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
imports = [ ./raw.nix ];
|
||||
|
||||
boot.loader.grub = {
|
||||
device = "nodev";
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
system.build.raw = lib.mkForce (import "${toString modulesPath}/../lib/make-disk-image.nix" {
|
||||
inherit lib config pkgs;
|
||||
partitionTableType = "efi";
|
||||
diskSize = 2048;
|
||||
format = "raw";
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user