From ec5a91398652743b13dd8e16bfb5a686b74b5670 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Fri, 17 Jun 2022 11:20:15 -0400 Subject: [PATCH] nix-roots: ignore registry cache --- modules/cli/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/cli/default.nix b/modules/cli/default.nix index c049022..5ba2403 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -41,12 +41,16 @@ (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 "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" '' #!${pkgs.python3}/bin/python (orig_data_size, compr_data_size, mem_used_total)=list(