dotfiles/overlays/show-files-to-be-deleted/default.nix

15 lines
355 B
Nix
Raw Permalink Normal View History

{inputs, ...}: {
flake.overlays.show-files-to-be-deleted = final: prev: {
show-files-to-be-deleted = final.writeShellScriptBin "show-files-to-be-deleted" ''
if [[ "$#" != "1" ]] ; then
echo "Invalid number ($#) of argumets, one expected."
exit 1
fi
_mount_point="$1"
find "$1" -mount -type f
'';
};
}