# Pass specialArgs to the home-manager module

**URL:** https://discourse.nixos.org/t/pass-specialargs-to-the-home-manager-module/33068
**Category:** Help
**Created:** [September 15, 2023, 2:35pm UTC](https://discourse.nixos.org/t/pass-specialargs-to-the-home-manager-module/33068 "2023-09-15T14:35:53Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![hitsmaxft](https://discourse.nixos.org/user_avatar/discourse.nixos.org/hitsmaxft/32/9402_2.png) [@hitsmaxft](https://discourse.nixos.org/u/hitsmaxft)
#### Post date: [January 27, 2024, 6:00am UTC](https://discourse.nixos.org/t/pass-specialargs-to-the-home-manager-module/33068/4 "2024-01-27T06:00:30Z")

</div>

Use `extraSpecialArgs` instead of `specialArgs`

```auto
forAllUser (name: home-manager.lib.homeManagerConfiguration {

  pkgs = (nixpkgs.legacyPackages.${system}.extend (import ./overlays/default.nix));

  # Specify your home configuration modules here, for example,
  # the path to your home.nix.

  modules = [./home-module.nix];

  # Optionally use extraSpecialArgs
  # to pass through arguments to home.nix

  extraSpecialArgs = {
    userConfig = {
      home = "/home/${name}";
      inherit name;
      inherit system;
    };
  };

})

```

---

_[View the full topic](https://discourse.nixos.org/t/pass-specialargs-to-the-home-manager-module/33068)._
