# Hardware / platform for cc-ci: an Incus VM (x86_64) on the autonomic infra.
# Mirrors the pre-flake baseline (docs/baseline.md).
{ modulesPath, ... }:
{
  imports = [
    "${modulesPath}/virtualisation/incus-virtual-machine.nix"
  ];

  # incus-agent for `incus exec`
  virtualisation.incus.agent.enable = true;

  # cloud-init seeded the VM (network + /etc/ts-* files); keep it enabled.
  services.cloud-init = {
    enable = true;
    network.enable = true;
  };

  # DHCP from the incus bridge; bridge provides no resolver, so set our own.
  networking.useDHCP = true;
  networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
}
