[O] NixOS XDG path #255
This commit is contained in:
parent
dbe657a05f
commit
9292a602df
1 changed files with 10 additions and 6 deletions
16
neofetch
16
neofetch
|
@ -2168,6 +2168,15 @@ get_packages() {
|
||||||
# Other (Needs complex command)
|
# Other (Needs complex command)
|
||||||
has kpm-pkg && ((packages+=$(kpm --get-selections | grep -cv deinstall$)))
|
has kpm-pkg && ((packages+=$(kpm --get-selections | grep -cv deinstall$)))
|
||||||
|
|
||||||
|
nix-user-pkgs() {
|
||||||
|
if [ -d ~/.nix-profile ]; then
|
||||||
|
nix-store -qR ~/.nix-profile
|
||||||
|
elif [ -d "$XDG_STATE_HOME/nix/profile" ]; then
|
||||||
|
nix-store -qR "$XDG_STATE_HOME/nix/profile"
|
||||||
|
fi
|
||||||
|
nix-store -qR /etc/profiles/per-user/"$USER"
|
||||||
|
}
|
||||||
|
|
||||||
# Separate system and user packages
|
# Separate system and user packages
|
||||||
if [[ $package_separate == on ]]; then
|
if [[ $package_separate == on ]]; then
|
||||||
has guix && {
|
has guix && {
|
||||||
|
@ -2177,10 +2186,6 @@ get_packages() {
|
||||||
}
|
}
|
||||||
|
|
||||||
has nix-store && {
|
has nix-store && {
|
||||||
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-system && tot nix-store -qR /run/current-system/sw
|
||||||
manager=nix-user && tot nix-user-pkgs
|
manager=nix-user && tot nix-user-pkgs
|
||||||
manager=nix-default && tot nix-store -qR /nix/var/nix/profiles/default
|
manager=nix-default && tot nix-store -qR /nix/var/nix/profiles/default
|
||||||
|
@ -2202,8 +2207,7 @@ get_packages() {
|
||||||
|
|
||||||
has nix-store && {
|
has nix-store && {
|
||||||
nix-all() {
|
nix-all() {
|
||||||
nix-store -qR ~/.nix-profile
|
nix-user-pkgs
|
||||||
nix-store -qR /etc/profiles/per-user/"$USER"
|
|
||||||
nix-store -qR /run/current-system/sw
|
nix-store -qR /run/current-system/sw
|
||||||
nix-store -qR /nix/var/nix/profiles/default
|
nix-store -qR /nix/var/nix/profiles/default
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue