[home] Fix support for non-NixOS systems

This commit is contained in:
2025-03-05 13:24:38 -08:00
parent abbcfebc97
commit a0ce3b810e

View File

@@ -81,8 +81,14 @@ in
# org.gradle.daemon.idletimeout=3600000 # org.gradle.daemon.idletimeout=3600000
# ''; # '';
".profile".text = ''
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
[ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && . "$HOME/.nix-profile/etc/profile.d/nix.sh"
'';
}; };
targets.genericLinux.enable = true;
# Home Manager can also manage your environment variables through # Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a # 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell # shell provided by Home Manager. If you don't want to manage your shell