Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
NixOS - squash logo, add new package location. (#1617)
Browse files Browse the repository at this point in the history
* Decrease size of NixOS logo by one block.

* Improve package counting for NixOS.
  • Loading branch information
kanashimia authored Nov 26, 2020
1 parent 80174ea commit bec3918
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1566,9 +1566,13 @@ get_packages() {
}

has nix-store && {
manager=nix-system && tot nix-store -q --requisites /run/current-system/sw
manager=nix-user && tot nix-store -q --requisites ~/.nix-profile
manager=nix-default && tot nix-store -q --requisites /nix/var/nix/profiles/default
nix-user-pkgs() {
nix-store -qR ~/.nix-profile
nix-store -qR /etc/profiles/per-user/"$USER"
}
manager=nix-system && tot nix-store -qR /run/current-system/sw
manager=nix-user && tot nix-user-pkgs
manager=nix-default && tot nix-store -qR /nix/var/nix/profiles/default
}

# pkginfo is also the name of a python package manager which is painfully slow.
Expand Down Expand Up @@ -1607,8 +1611,12 @@ get_packages() {
has pkgin && tot pkgin list

has nix-store && {
manager=nix-system && tot nix-store -q --requisites "/run/current-system/sw"
manager=nix-user && tot nix-store -q --requisites "$HOME/.nix-profile"
nix-user-pkgs() {
nix-store -qR ~/.nix-profile
nix-store -qR /etc/profiles/per-user/"$USER"
}
manager=nix-system && tot nix-store -qR /run/current-system/sw
manager=nix-user && tot nix-store -qR nix-user-pkgs
}
;;

Expand Down Expand Up @@ -8559,7 +8567,7 @@ EOF
"NixOS"*)
set_colors 4 6
read -rd '' ascii_data <<'EOF'
${c1} β–—β–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–™ β–Ÿβ–ˆβ–ˆβ––
${c1} β–—β–„β–„β–„ ${c2}β–—β–„β–„β–„β–„ β–„β–„β–„β––
${c1} β–œβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–™ β–Ÿβ–ˆβ–ˆβ–ˆβ–›
${c1} β–œβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–™β–Ÿβ–ˆβ–ˆβ–ˆβ–›
${c1} β–œβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–›
Expand All @@ -8578,7 +8586,7 @@ ${c2} β–œβ–› ${c1}β–Ÿβ–ˆβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
${c1} β–Ÿβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–™
${c1} β–Ÿβ–ˆβ–ˆβ–ˆβ–›β–œβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–™
${c1} β–Ÿβ–ˆβ–ˆβ–ˆβ–› β–œβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–ˆβ–™
${c1} β–β–ˆβ–ˆβ–› β–œβ–ˆβ–ˆβ–ˆβ–™ ${c2}β–œβ–ˆβ–ˆβ–˜
${c1} ▝▀▀▀ β–€β–€β–€β–€β–˜ ${c2}β–€β–€β–€β–˜
EOF
;;

Expand Down

0 comments on commit bec3918

Please sign in to comment.