From 731b3a62c83ba41f0961d66d37190d92ebb26929 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 25 Sep 2019 10:14:46 +0300 Subject: [PATCH] packages: add support for nixos --- pfetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pfetch b/pfetch index 929e5e9..09205fa 100755 --- a/pfetch +++ b/pfetch @@ -293,6 +293,12 @@ get_pkgs() { guix package -p /run/current-system/profile -I guix package -I } + + # NIX requires two commands. + command -v nix-store && { + nix-store -q --requisites /run/current-system/sw + nix-store -q --requisites ~.nix-profile + } ;; Darwin*)