programs: sane-reclaim-disk-space: sandbox
This commit is contained in:
parent
48744dcaaa
commit
f785ccd351
|
@ -115,6 +115,19 @@ in
|
||||||
net = "clearnet";
|
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 = {
|
"sane-scripts.which".sandbox = {
|
||||||
method = "bwrap";
|
method = "bwrap";
|
||||||
wrapperType = "wrappedDerivation";
|
wrapperType = "wrappedDerivation";
|
||||||
|
|
|
@ -9,9 +9,8 @@ set -xeu
|
||||||
# scan the store and hard-link identical files
|
# scan the store and hard-link identical files
|
||||||
# nix-store --optimise
|
# nix-store --optimise
|
||||||
|
|
||||||
# TODO: do we need `sudo` here?
|
|
||||||
# TODO: `nix-store --gc`?
|
# 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
|
# TODO: could use dduper: https://github.com/Lakshmipathi/dduper
|
||||||
# like rmlint, but better perf for btrfs (checksum tests)
|
# like rmlint, but better perf for btrfs (checksum tests)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user