Configure ZFS filesystems after install

My server has a ZFS pool. After installation, I want to add PostgreSQL and create a ZFS file system for it to store the data. Is it possible to do this in a declarative way in configuration.nix? I’ve used nixos-anywhere and disko to deploy my server. I’m using deploy-rs to manage it.