mirror of
https://github.com/nix-community/home-manager
synced 2024-11-19 17:49:45 +01:00
home-environment: honor use-xdg-base-directories
This commit is contained in:
parent
017302483c
commit
de8ba413c5
1 changed files with 2 additions and 0 deletions
|
@ -508,6 +508,8 @@ in
|
||||||
if config.submoduleSupport.enable
|
if config.submoduleSupport.enable
|
||||||
&& config.submoduleSupport.externalPackageInstall
|
&& config.submoduleSupport.externalPackageInstall
|
||||||
then "/etc/profiles/per-user/${cfg.username}"
|
then "/etc/profiles/per-user/${cfg.username}"
|
||||||
|
else if config.nix.enable && (config.nix.settings.use-xdg-base-directories or false)
|
||||||
|
then "${config.xdg.stateHome}/nix/profile"
|
||||||
else cfg.homeDirectory + "/.nix-profile";
|
else cfg.homeDirectory + "/.nix-profile";
|
||||||
|
|
||||||
programs.bash.shellAliases = cfg.shellAliases;
|
programs.bash.shellAliases = cfg.shellAliases;
|
||||||
|
|
Loading…
Reference in a new issue