summaryrefslogtreecommitdiff
path: root/misc/nixgc.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-08 09:10:49 -0400
committerseth <[email protected]>2023-08-08 09:10:49 -0400
commitab4a5cb0c6c713d5e3a98f3e21eb8a2bb759653d (patch)
tree2cb928422ed95b9ea389989c5a6ad4d199bc8ff7 /misc/nixgc.nix
parenta0229f519b150e51d8994c98b639c4df45d82d6f (diff)
pkgs: make nixgc an actual package
Diffstat (limited to 'misc/nixgc.nix')
-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
- ''