How to access HM config attributes within a HM config definition? (flake)

While refactoring my HM arguments in my multi-system-multi-user flake due to the changes in 21.11, I stumbled on this:

In a theme.nix file (in the imports list of home.nix) I define

  gtk = {
    enable = true;
    iconTheme = {
      name = "BeautyLine";
      package =;

and in services/dunst I want to refer to that like so (which worked when config was still an argument`):

  services.dunst = {
    enable = true;
    iconTheme = config.gtk.iconTheme;

which stopped working after taking config out acc. to the release notes 21.11.

Under which attribute can I access the HM config? (pkgs.config seems to contain the system’s config, but not HM attributes).

Why do you think config is no longer an argument? The release notes say no such thing. It would be absolutely impossible for the module system to work without it. For instance, look at just about any module in home-manager, and you’ll see it using config still.

1 Like

:man_facepalming: reading is also an art :stuck_out_tongue_winking_eye:
It mentioned configuration, not config, duh.
Thanks for the pointer.