Description
Is your feature request related to a problem? Please describe.
Currently, Hyfetch will not pick up Nix-user packages if the folder (or symlink) ~/.nix-profile
is not present (i.e. Nix is set to respect XDG Base Directory). For example, if nix.settings.use-xdg-base-directories
is set to true in Home Manager, Home Manager will not create the file ~/.nix-profile
, causing this behavior.
Describe the solution you'd like
If Hyfetch could be adjusted to check $XDG_STATE_HOME/nix/profile
instead, that would be wonderful. As far as I can tell, in modern versions of Nix ~/.nix-profile
is already a symbolic link to this folder anyway.
Describe alternatives you've considered
Hyfetch could also check both of these locations, similar to how it currently checks both ~/.nix-profile
and /etc/profiles/per-user/"$USER"
. However, like I said, I believe ~/.nix-profile
is already a symlink to $XDG_STATE_HOME/nix/profile
anyway, so this would be redundant.
Additional context
N/A