I just figured out another “quick and dirty” way to make this work:
- Make your hosts file temporarily dynamic with
rm /etc/hosts && cp /etc/static/hosts /etc/hosts - Run vpn-slice and see what it writes to /etc/hosts
- Add the extra hosts to you NixOS config with networking.extraHosts
- Rebuild and use vpn-slice with the --no-host-names option in the future