It depends. You can install it with nix/guix and configure it as in any other Linux distro.
Or, if it's a service you want to make the configuration totally reproducible, you can use https://www.gnu.org/software/guix/manual/html_node/Services.... interfaces for those packages that have some written for them.
But there's nothing wrong with regular dotfiles.