summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdomain-search4
-rwxr-xr-xnix-audit-sizes11
2 files changed, 13 insertions, 2 deletions
diff --git a/domain-search b/domain-search
index 840cfe8..fa4d166 100755
--- a/domain-search
+++ b/domain-search
@@ -5,6 +5,6 @@
#
dict=$buildInputs/share/hunspell/en_US.dic
#
-# grep the dictionary, strip weird '/SMY', then pass to my domain script
+# grep the dictionary, strip weird '/SMY'
#
-grep $1 $dict | sed "s|\/.*$||g" | xargs -I % domain %
+grep $1 $dict | sed "s|\/.*$||g"
diff --git a/nix-audit-sizes b/nix-audit-sizes
new file mode 100755
index 0000000..b36278c
--- /dev/null
+++ b/nix-audit-sizes
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+#
+echo "# this takes a while, be patient..."
+roots=$(find -H /nix/var/nix/gcroots/auto -type l)
+for root in $roots
+do
+ link=$(readlink $root)
+ storepath=$(realpath $link)
+ size=$(nix-store -q --requisites $storepath | sort -uf | xargs du -ch | tail -1 | sed 's/[ ]*total//g')
+ printf "%s\n\t%s\n\t%s\n\n" $size $link $storepath
+done