From 26d8b6dac37d558cd2a3d55c8092ce23f54d3df9 Mon Sep 17 00:00:00 2001 From: MagicRB Date: Tue, 3 Oct 2023 16:56:14 +0200 Subject: [PATCH] Add `show-files-to-be-deleted` overlay Signed-off-by: MagicRB --- overlays/show-files-to-be-deleted/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 overlays/show-files-to-be-deleted/default.nix diff --git a/overlays/show-files-to-be-deleted/default.nix b/overlays/show-files-to-be-deleted/default.nix new file mode 100644 index 0000000..7f70a0c --- /dev/null +++ b/overlays/show-files-to-be-deleted/default.nix @@ -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 + ''; + }; +} +