Use extraSpecialArgs
instead of specialArgs
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;
};
};
})