From ab4a5cb0c6c713d5e3a98f3e21eb8a2bb759653d Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 8 Aug 2023 09:10:49 -0400 Subject: pkgs: make nixgc an actual package --- misc/nixgc.nix | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 misc/nixgc.nix (limited to 'misc/nixgc.nix') 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 - '' -- cgit v1.2.3