aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-25 10:14:46 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-25 10:14:46 +0300
commit731b3a62c83ba41f0961d66d37190d92ebb26929 (patch)
tree718f3ee78d36ae760772a21b8725707998fea573
parentae5a10c00d54c8749c40eb986d166cbca7fddb39 (diff)
downloadpfetch-731b3a62c83ba41f0961d66d37190d92ebb26929.tar.gz
packages: add support for nixos
-rwxr-xr-xpfetch6
1 files changed, 6 insertions, 0 deletions
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*)