sane-scripts: port sane-reclaim-disk-space to nix-shell

This commit is contained in:
Colin 2023-06-07 07:00:07 +00:00
parent 9942025a2f
commit af4cfc29b1
2 changed files with 7 additions and 1 deletions

View File

@ -229,6 +229,11 @@ let
src = ./src;
pkgs = [ "systemd" ];
};
reclaim-disk-space = static-nix-shell.mkBash {
pname = "sane-reclaim-disk-space";
src = ./src;
pkgs = [ "nix" "rmlint" "util-linux" ];
};
reclaim-boot-space = static-nix-shell.mkPython3Bin {
pname = "sane-reclaim-boot-space";
src = ./src;

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix -p rmlint -p util-linux
# script to reclaim some hard drive space
# some of this is documented here:
# - <https://nixos.wiki/wiki/Storage_optimization>