From de8ba413c578b68ef602c4f4c5909d9636a5bf92 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Sat, 15 Apr 2023 02:20:39 +0530 Subject: [PATCH] home-environment: honor use-xdg-base-directories --- modules/home-environment.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index aca3723ef..497e174b1 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -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;