EnsureNixosConfigTreeOnProxmoxHost

Extracts /iso/nixos-config from the synced nixos.iso on a Proxmox host into a stable on-disk path. Used as rsync source by UpdateNixosVm: each cycle pushes the *current* base tree on top of every installed Nix VM, so config drift (modules edited via the WebUI, hand-edited /etc/nixos, etc.) gets corrected.

Note
Idempotent. A stamp file at nixos-config/.netsetup-iso-sha256 records the iso’s sha256. When it matches the current iso, extraction is skipped. Otherwise the directory is wiped and re-extracted from the iso via 7z x.
public static class EnsureNixosConfigTreeOnProxmoxHost

1. Fields

1.1. ProxmoxConfigTreePath

Absolute on-host directory containing the extracted base nixos config tree.

public static readonly AbsolutePath ProxmoxConfigTreePath

1.2. StampFileName

Stamp file name (lives inside the extracted tree).

public const string StampFileName

2. Methods

2.1. Run(ISystemHost)

Ensures the extracted nixos-config tree is present and matches the iso at ProxmoxNixosIsoPath. Returns the action taken.

public static EnsureConfigTreeResult Run(ISystemHost host)
Table 1. Parameters
Name Type Description

host

ISystemHost

Returns: EnsureConfigTreeResult