From d944fb4a19bc55729e7dac824bde69e600df3d8f Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Fri, 28 May 2021 22:00:37 -0400 Subject: nixos/virtualization: Allow building EFI OCI images --- nixos/modules/virtualisation/oci-image.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos') diff --git a/nixos/modules/virtualisation/oci-image.nix b/nixos/modules/virtualisation/oci-image.nix index 58a32b16aada..d4af5016dd71 100644 --- a/nixos/modules/virtualisation/oci-image.nix +++ b/nixos/modules/virtualisation/oci-image.nix @@ -1,5 +1,8 @@ { config, lib, pkgs, ... }: +let + cfg = config.oci; +in { imports = [ ./oci-common.nix ]; @@ -10,6 +13,7 @@ configFile = ./oci-config-user.nix; format = "qcow2"; diskSize = 8192; + partitionTableType = if cfg.efi then "efi" else "legacy"; }; systemd.services.fetch-ssh-keys = { -- cgit 1.4.1