I love the combination.
I use devenv (yet another nix flake dev environments) and opencode.
It is quite a synergy : my nix usage profits from the agent and the agent profits from being able to install just anything.
I even vibecoded a plugin for personal use that runs all bash tool calls through devenv and uses the supplied nix lsp package:
Also being able to use wsl on my windows based work laptop added a lot to nixos affordance : https://nix-community.github.io/NixOS-WSL/install.html