nixos/virtualization: Allow building EFI OCI images

This commit is contained in:
Samuel Dionne-Riel 2021-05-28 22:00:37 -04:00 committed by Thiago Kenji Okada
parent 9849ccb241
commit d944fb4a19

View File

@ -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 = {