1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00

home-environment: honor use-xdg-base-directories

This commit is contained in:
Utkarsh Gupta 2023-04-15 02:20:39 +05:30 committed by Robert Helgesson
parent 017302483c
commit de8ba413c5
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -508,6 +508,8 @@ in
if config.submoduleSupport.enable
&& config.submoduleSupport.externalPackageInstall
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";
programs.bash.shellAliases = cfg.shellAliases;