Currently, Fastfetch 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 folder ~/.nix-profile,[1] causing this behavior. The XDG Base Directory equivalent of ~/.nix-profile is $XDG_STATE_HOME/nix/profile.
Motivation:
Hyfetch had a similar issue, which I reported and that got fixed. I tried out Fastfetch today and noticed it had the same issue. The fix used there was to check ~/.nix-profile if it exists, otherwise falling back to $XDG_STATE_HOME/nix/profile.
Wanted features:
Currently, Fastfetch 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, ifnix.settings.use-xdg-base-directories
is set to true in Home Manager, Home Manager will not create the folder~/.nix-profile
,[1] causing this behavior. The XDG Base Directory equivalent of~/.nix-profile
is$XDG_STATE_HOME/nix/profile
.Motivation:
Hyfetch had a similar issue, which I reported and that got fixed. I tried out Fastfetch today and noticed it had the same issue. The fix used there was to check
~/.nix-profile
if it exists, otherwise falling back to$XDG_STATE_HOME/nix/profile
.