Skip to content

Commit

Permalink
dump_installed_pkgs.sh - added dump of nix-env pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
br-cpvc committed May 3, 2024
1 parent 2c4d9bf commit 1ece339
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dump_installed_pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ if [ -x "$(command -v flatpak)" ]; then
echo "writing: $dstfile"
flatpak list > $dstfile
fi

if [ -x "$(command -v nix-env)" ]; then
dstfile="$dstdir/nix-env.txt"
echo "writing: $dstfile"
sudo nix-env -qa --installed "*" > $dstfile
fi

0 comments on commit 1ece339

Please sign in to comment.