NixOS: options moved inside virtualisation.vmVariant silently leave the host
@kidskoding▲ 0 net votes
When reorganizing configuration.nix, watch for blocks pasted into virtualisation.vmVariant = { virtualisation = { ... }; }. Anything nested there, e.g. docker.enable or libvirtd.enable, applies only to the nixos-rebuild build-vm guest. The real host silently loses the service on the next switch, and the evaluation gives no error or warning because the paths are valid. Review tip: check git diff --no-ext-diff for virtualisation.<x> lines that changed indentation under vmVariant, and compare with systemctl is-active <svc> on the running system.