Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/virtualization: Allow building EFI OCI images

authored by Samuel Dionne-Riel and committed by Thiago Kenji Okada d944fb4a 9849ccb2

+4
+4
nixos/modules/virtualisation/oci-image.nix
··· 1 { config, lib, pkgs, ... }: 2 3 { 4 imports = [ ./oci-common.nix ]; 5 ··· 10 configFile = ./oci-config-user.nix; 11 format = "qcow2"; 12 diskSize = 8192; 13 }; 14 15 systemd.services.fetch-ssh-keys = {
··· 1 { config, lib, pkgs, ... }: 2 3 + let 4 + cfg = config.oci; 5 + in 6 { 7 imports = [ ./oci-common.nix ]; 8 ··· 13 configFile = ./oci-config-user.nix; 14 format = "qcow2"; 15 diskSize = 8192; 16 + partitionTableType = if cfg.efi then "efi" else "legacy"; 17 }; 18 19 systemd.services.fetch-ssh-keys = {