Pins nixpkgs to the rev cc-ci already ran (no-op-then-base); deploy via switch --flake on-host. System healthy (gen 3) post-switch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
22 lines
628 B
Nix
22 lines
628 B
Nix
# 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" ];
|
|
}
|