Skip to content

Commit 1ece339

Browse files
committed
dump_installed_pkgs.sh - added dump of nix-env pkgs
1 parent 2c4d9bf commit 1ece339

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dump_installed_pkgs.sh

+6
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ if [ -x "$(command -v flatpak)" ]; then
4141
echo "writing: $dstfile"
4242
flatpak list > $dstfile
4343
fi
44+
45+
if [ -x "$(command -v nix-env)" ]; then
46+
dstfile="$dstdir/nix-env.txt"
47+
echo "writing: $dstfile"
48+
sudo nix-env -qa --installed "*" > $dstfile
49+
fi

0 commit comments

Comments
 (0)