summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/nixgc.nix11
1 files changed, 0 insertions, 11 deletions
diff --git a/misc/nixgc.nix b/misc/nixgc.nix
deleted file mode 100644
index 9b2b357..0000000
--- a/misc/nixgc.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-# this is a shell script that uses the new nix cli to emulate
-# nix-collect-garbage
-with (import (builtins.getFlake "nixpkgs") {});
- writeScriptBin "nixgc" ''
- #!${fish}/bin/fish
- set -l profiles (find /nix/var/nix/profiles/ -maxdepth 3 -type l -not -name '*-link')
-
- for profile in $profiles
- sudo nix profile wipe-history --profile $profile
- end
- ''