mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
15 lines
355 B
Nix
15 lines
355 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
|
|
'';
|
|
};
|
|
}
|