You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Okay I added the XDG path which will be used if ~/.nix-profile doesn't exist. Should work but I haven't tested it since I don't have a nixos system around anymore. Can you test it for me? Thanks.
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, ifnix.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
The text was updated successfully, but these errors were encountered: