home-environment: make home.profileDirectory
public
This option has been stable for a long time and may be generally useful.
This commit is contained in:
parent
398c0b36a3
commit
8230decb3f
|
@ -205,12 +205,13 @@ in
|
||||||
|
|
||||||
home.profileDirectory = mkOption {
|
home.profileDirectory = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
defaultText = "~/.nix-profile";
|
defaultText = literalExpression ''
|
||||||
internal = true;
|
"''${home.homeDirectory}/.nix-profile" or
|
||||||
|
"/etc/profiles/per-user/''${home.username}"
|
||||||
|
'';
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
description = ''
|
description = ''
|
||||||
The profile directory where Home Manager generations are
|
The profile directory where Home Manager generations are installed.
|
||||||
installed.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -502,7 +503,7 @@ in
|
||||||
&& config.submoduleSupport.externalPackageInstall
|
&& config.submoduleSupport.externalPackageInstall
|
||||||
then "/etc/profiles/per-user/${cfg.username}"
|
then "/etc/profiles/per-user/${cfg.username}"
|
||||||
else cfg.homeDirectory + "/.nix-profile";
|
else cfg.homeDirectory + "/.nix-profile";
|
||||||
|
|
||||||
programs.bash.shellAliases = cfg.shellAliases;
|
programs.bash.shellAliases = cfg.shellAliases;
|
||||||
programs.zsh.shellAliases = cfg.shellAliases;
|
programs.zsh.shellAliases = cfg.shellAliases;
|
||||||
programs.fish.shellAliases = cfg.shellAliases;
|
programs.fish.shellAliases = cfg.shellAliases;
|
||||||
|
|
Loading…
Reference in a new issue