mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
nix-roots: ignore registry cache
This commit is contained in:
parent
47fd774f1a
commit
ec5a913986
1 changed files with 6 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue