Closed Liassica closed 2 months ago
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.
Seems to work, thank you very much!
Great!
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