mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-28 19:16:14 +01:00
18 lines
380 B
Nix
18 lines
380 B
Nix
{ 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
|
|
'';
|
|
};
|
|
}
|
|
|