chore: remove old prune script

This commit is contained in:
Patrick 2024-11-16 11:21:57 +01:00
parent 2c12cd8c74
commit f190614f61
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 0 additions and 18 deletions

View file

@ -1,7 +1,6 @@
_final: prev: { _final: prev: {
scripts = { scripts = {
clone-term = prev.callPackage ./clone-term.nix { }; clone-term = prev.callPackage ./clone-term.nix { };
impermanence-o = prev.callPackage ./impermanence-orphan.nix { };
deploy = prev.writeShellApplication { deploy = prev.writeShellApplication {
name = "deploy"; name = "deploy";
runtimeInputs = [ prev.nvd ]; runtimeInputs = [ prev.nvd ];

View file

@ -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))
''