Mitmproxy NixOS module

I wonder if anyone has a mitmproxy ( for NixOS

I could see it would need to:

  1. Add the locally generated certificate to the certificate store
  2. Create a systemd service with mitmproxy running
  3. Configure the system to setup proxy to the local running service when the service starts up.
    (Could be cool to unset it when not enabled)

I think then set the default not to enabled/started so that it can be done on demand?

1 Like