Add show-files-to-be-deleted overlay

Signed-off-by: MagicRB <richard@brezak.sk>
This commit is contained in:
MagicRB 2023-10-03 16:56:14 +02:00
parent a8388bb09c
commit 26d8b6dac3
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -0,0 +1,11 @@
{ inputs, ... }:
{
flake.overlays.show-files-to-be-deleted =
final: prev: {
show-files-to-be-deleted = final.writeShellScriptBin "show-files-to-be-deleted" ''
[ $(id -u) == 0 ] || exec sudo $0
find / -mount -type f
'';
};
}