programs: sane-reclaim-disk-space: sandbox

This commit is contained in:
Colin 2024-02-19 17:06:22 +00:00
parent 48744dcaaa
commit f785ccd351
2 changed files with 14 additions and 2 deletions

View File

@ -115,6 +115,19 @@ in
net = "clearnet";
};
# TODO: is `sane-reclaim-boot-space` broken?
# "sane-scripts.reclaim-boot-space".sandbox = {
# method = "bwrap";
# wrapperType = "wrappedDerivation";
# extraPaths = [ "/boot" ];
# };
"sane-scripts.reclaim-disk-space".sandbox = {
method = "bwrap";
wrapperType = "wrappedDerivation";
extraPaths = [ "/nix/var/nix" ];
};
"sane-scripts.which".sandbox = {
method = "bwrap";
wrapperType = "wrappedDerivation";

View File

@ -9,9 +9,8 @@ set -xeu
# scan the store and hard-link identical files
# nix-store --optimise
# TODO: do we need `sudo` here?
# TODO: `nix-store --gc`?
sudo nix-collect-garbage --delete-older-than 30d
nix-collect-garbage --delete-older-than 30d
# TODO: could use dduper: https://github.com/Lakshmipathi/dduper
# like rmlint, but better perf for btrfs (checksum tests)