anchor.diff:      auth_unix_rw = "polkit"
       ${cfg.extraConfig}
     '';
  -  ovmfFilePrefix = if pkgs.stdenv.isAarch64 then "AAVMF" else "OVMF";
     qemuConfigFile = pkgs.writeText "qemu.conf" ''
       ${optionalString cfg.qemu.ovmf.enable ''
  -      nvram = [ "/run/libvirt/nix-ovmf/${ovmfFilePrefix}_CODE.fd:/run/libvirt/nix-ovmf/${ovmfFilePrefix}_VARS.fd" ]
  +      nvram = [ "/run/libvirt/nix-ovmf/AAVMF_CODE.fd:/run/libvirt/nix-ovmf/AAVMF_VARS.fd", "/run/libvirt/nix-ovmf/OVMF_CODE.fd:/run/libvirt/nix-ovmf/OVMF_VARS.fd" ]
       ''}
       ${optionalString (!cfg.qemu.runAsRoot) ''
         user = "qemu-libvirtd"
  
positive.code:         '';
        };
  
        package = mkOption {
          type = types.package;
          default = pkgs.OVMF;
          defaultText = literalExpression "pkgs.OVMF";
          example = literalExpression "pkgs.OVMFFull";
          description = ''
            OVMF package to use.
          '';
        };
      };
  
negative.code:     (mkRenamedOptionModule
        [ "virtualisation" "libvirtd" "qemuOvmf" ]
        [ "virtualisation" "libvirtd" "qemu" "ovmf" "enable" ])
      (mkRemovedOptionModule
        [ "virtualisation" "libvirtd" "qemuOvmfPackage" ]
        "If this option was set to `foo`, set the option `virtualisation.libvirtd.qemu.ovmf.packages' to `[foo.fd]` instead.")
      (mkRenamedOptionModule
        [ "virtualisation" "libvirtd" "qemuSwtpm" ]
        [ "virtualisation" "libvirtd" "qemu" "swtpm" "enable" ])
  