Closed groulot closed 10 months ago
For microvm@.service
et al to go away, remove the microvm.nixosModules.microvm
module from your host. Indicated by the trailing @
, this service is a template which means that microvm@firewall.service
does not exist in a concrete file.
Hello
I used the declarative microvm approach to deploy a microvm on a host, so far so good. I stopped the MicroVM. Removed it from the host's configuration. And deleted it's /var/lib/microvms directory. But the service for the microVM remains (VM name is "firewall") :
The service is skipped, but I'd like it to be absent. Did I mess up somewhere ? The systemd files related to the setup of the TAP interfaces of the microvm disapeared correctly, as expected.
I uses Nixops to deploy the host, could it interfere in the removal of the service ?
My flake.nix with microvm present:
microvm/firewall-host.nix :
jean/configuration.nix:
microvm/firewall-config.nix :