How to manage Guix declaratively on NixOS?

I’ve recently wanted to try out using GNU Guix, because it seems to be a very well designed package manager and I want to get more familiar with it. It can be installed on NixOS from Nixpkgs, and I want to know if there is a way to manage Guix with Nix, being able to write down in my configuration.nix file what Guix packages I want installed and how I want Guix and its packages configured.

Edit: To rephrase, I’m wondering if there is an option for Guix (I have looked through the options here, but am a bit confused) that allows one to manage Guix packages and settings via Nix from the NixOS configuration files, rather than installing them imperatively, so that they are managed alongside the rest of the packages and settings when I build a new derivation.

These are the available guix options: https://search.nixos.org/options?channel=25.11&query=guix

You can configure guix with said options, but not its packages and so on; generally, you would use a guix configuration file to use guix. It’s a different language from nix.

1 Like

Yes, I agree. Apologies, my question was not as clear as it should have been. It was, primarily: how do I manage a Guix configuration file via Nix? The goal is to have Guix code ultimately managed by Nix, kind of in the same way one can manage a vimrc file with the option programs.neovim.configure, where code from another language is dictated to Nix to place somewhere for the managed application to work with.