How alias inside the argument list?

The file’s argument list contains config as does the home-manager’s argument list.

How to call them both inside the attribute set?

{
  config,
  lib,
  pkgs,
  ...
}:
{
  config = {
    home-manager.users.${config.ncfg.primaryUserName} =
      { pkgs, config, ... }:
      {
          ## HERE: I'd like to call both `config.`
      };
  };
}

You could use a let binding in general, but in this specific case, when using hm as a NixOS module, you can use osConfig (without a let binding) to refer to the NixOS-level config.

1 Like