diff --git a/pkgs/scripts/default.nix b/pkgs/scripts/default.nix index bfba124..27659fa 100644 --- a/pkgs/scripts/default.nix +++ b/pkgs/scripts/default.nix @@ -1,7 +1,6 @@ _final: prev: { scripts = { clone-term = prev.callPackage ./clone-term.nix { }; - impermanence-o = prev.callPackage ./impermanence-orphan.nix { }; deploy = prev.writeShellApplication { name = "deploy"; runtimeInputs = [ prev.nvd ]; diff --git a/pkgs/scripts/impermanence-orphan.nix b/pkgs/scripts/impermanence-orphan.nix deleted file mode 100644 index 1a3a808..0000000 --- a/pkgs/scripts/impermanence-orphan.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ writers }: -writers.writePython3Bin "find-orphaned" { } '' - import sys - import os - if len(sys.argv) != 2: - print("Please give a singular argument containing the folder to prune") - exit(1) - mountpoint = sys.argv[1] - if !os.path.exists(mountpoint)): - print("Argument has to exist") - exit(1) - with open("/proc/mounts", "r") as f: - mounts = [line.split() for line in f.readlines()] - toplevel = - current = [mountpoint] - print(os.listdir(mountpoint)) -''