Skip to content

Support XDG Base Directory-respecting Nix-user configuration #255

Closed
@Liassica

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions