Skip to content

Conversation

@xoltia
Copy link
Contributor

@xoltia xoltia commented Jul 11, 2025

Fixes #1782 and removes unnecessary code in nix user detection.

@CarterLi CarterLi requested a review from Copilot July 12, 2025 14:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the Nix package detection logic by removing manual directory existence checks and adds support for scanning /etc/profiles/per-user/$USER for installed packages.

  • Simplified per-user Nix profile detection by relying on getNixPackages directly instead of explicit ffPathExists checks.
  • Introduced detection of system-wide per-user Nix profiles under /etc/profiles/per-user/$USER.

@CarterLi CarterLi merged commit 5011edc into fastfetch-cli:dev Jul 12, 2025
22 checks passed
@CarterLi
Copy link
Member

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Check under /etc/profiles/ for nix-user packages

2 participants