I would like to run arbitrary services (in this case, qBittorrent) in a dedicated network namespace. To leverage the healthy default provided by NixOS modules, I would also like to make use of the qBittorrent NixOS module provided in nixpkgs: nixpkgs/nixos/modules/services/torrent/qbittorrent.nix at 23d72dabcb3b12469f57b37170fcbc1789bd7457 · NixOS/nixpkgs · GitHub
As from my understanding, it is possible to confine systemd services to an arbitrary network namespace simply by setting the NetworkNamespacePath attribute in ServiceConfig. Unfortunately, the qBittorrent NixOS module does not provide an option to set it, and ships a systemd service with healthy defaults:
Is there a way to apply an “overlay” to the original NixOS module, in order to modify the systemd services it includes to run in an arbitrary network namespace?