Vpn-slice in NixOS wants write access to /etc/hosts

I just figured out another “quick and dirty” way to make this work:

  1. Make your hosts file temporarily dynamic with rm /etc/hosts && cp /etc/static/hosts /etc/hosts
  2. Run vpn-slice and see what it writes to /etc/hosts
  3. Add the extra hosts to you NixOS config with networking.extraHosts
  4. Rebuild and use vpn-slice with the --no-host-names option in the future