proxmox-nixos icon indicating copy to clipboard operation
proxmox-nixos copied to clipboard

The option `image.baseName' has conflicting definition values, after enabling autoInstall

Open SpiderUnderUrBed opened this issue 9 months ago • 0 comments

       error: The option `image.baseName' has conflicting definition values:
       - In `/nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source/nixos/modules/installer/cd-dvd/iso-image.nix': "nixos-offline-installer"
       - In `/nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source/nixos/modules/installer/cd-dvd/iso-image.nix': "nixos-minimal-25.05pre-git-x86_64-linux"
       Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.

^ error My configuration:

{ config, lib, pkgs, ... }:

{
  networking.hostName = "myvm";

  virtualisation.proxmox = {
    node = "intelnuc";
    autoInstall = lib.mkForce true;
#    iso = pkgs.runCommand "nixos-minimal.iso" { 
#      src = ../latest-nixos-minimal-x86_64-linux.iso; 
#    } ''
#      mkdir -p $out
#      mkdir $out/iso
#      cp $src $out/iso/
#    '';

    vmid = 100;
    memory = 12288;
    cores = 3;
    sockets = 1;
    boot.order = [ "disk" ];
    scsi = [
      { file = "/home/spiderunderurbed/hdds/vms/vm-1/result/nixos.qcow2"; size = "20G"; }
    ];
  };

  services.openssh.enable = true;
  time.timeZone = "UTC";

  # 🔧 Fix conflicting image.baseName
#  image.baseName = lib.mkForce "nixos-custom";
}

my command: nix run github:SaumonNet/proxmox-nixos#nixmoxer -- --flake myvm

SpiderUnderUrBed avatar Feb 17 '25 03:02 SpiderUnderUrBed