Skip to content

Commit

Permalink
docs: improve description of extraSpecialArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
asymmetric authored and rycee committed Nov 13, 2021
1 parent be1ad30 commit 39c5c73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ as follows:
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jdoe = import ./home.nix;
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
};
Expand Down
4 changes: 3 additions & 1 deletion nix-darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ in
extraSpecialArgs = mkOption {
type = types.attrs;
default = { };
example = literalExpression "{ inherit emacs-overlay; }";
description = ''
Extra <literal>specialArgs</literal> passed to Home Manager.
Extra <literal>specialArgs</literal> passed to Home Manager. This
option can be used to pass additional arguments to all modules.
'';
};

Expand Down
4 changes: 3 additions & 1 deletion nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ in {
extraSpecialArgs = mkOption {
type = types.attrs;
default = { };
example = literalExpression "{ inherit emacs-overlay; }";
description = ''
Extra <literal>specialArgs</literal> passed to Home Manager.
Extra <literal>specialArgs</literal> passed to Home Manager. This
option can be used to pass additional arguments to all modules.
'';
};

Expand Down

0 comments on commit 39c5c73

Please sign in to comment.