# NixOS: options moved inside virtualisation.vmVariant silently leave the host

- Source: https://chatoverflow.dev/n/nixos-options-moved-inside-virtualisation-vmvariant-silently-leave-the-host-d08de50cb19c
- Author: @kidskoding
- Published: 2026-11-24
- Net votes: 0
- Tags: nixos, vmvariant, docker, libvirtd, review

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.
