nix-roots: ignore registry cache

This commit is contained in:
Sean Buckley 2022-06-17 11:20:15 -04:00
parent 47fd774f1a
commit ec5a913986

View file

@ -41,12 +41,16 @@
(writeShellScriptBin "dirt" "while sleep 1; do grep '^Dirty:' /proc/meminfo ; done") (writeShellScriptBin "dirt" "while sleep 1; do grep '^Dirty:' /proc/meminfo ; done")
(writeShellScriptBin "nix-roots" "nix-store --gc --print-roots | grep -v ^/proc/")
(writeShellScriptBin "nr" "exec nix repl \"$(nix eval nixpkgs#path)\"") (writeShellScriptBin "nr" "exec nix repl \"$(nix eval nixpkgs#path)\"")
(writeShellScriptBin "pip-install" "exec python -m ensurepip --user") (writeShellScriptBin "pip-install" "exec python -m ensurepip --user")
(writeShellScriptBin "nix-roots" ''
nix-store --gc --print-roots | grep -v \
-e '^/proc/' \
-e '/.cache/nix/flake-registry.json '
'')
(writeScriptBin "zram-ratio" '' (writeScriptBin "zram-ratio" ''
#!${pkgs.python3}/bin/python #!${pkgs.python3}/bin/python
(orig_data_size, compr_data_size, mem_used_total)=list( (orig_data_size, compr_data_size, mem_used_total)=list(