Using rclone mount with systemd on nixos

I recently added a b2 remote to one of my nixos systems. I found some docs recommending a systemd service but this felt like the wrong abstraction. So I opted to turn that into a systemd mount. In the spirit of “let’s write a blog post so that I don’t forget”, here’s how to do it. Here’s the nix module. Replace the contents of let with your configuration. I’m mounting a b2 bucket, but this should…