diff options
| author | seth <[email protected]> | 2023-12-24 04:20:53 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-24 05:18:20 -0500 |
| commit | 0fc48fd45f756534648d989f5a2c4f3060464218 (patch) | |
| tree | 41293f12d3de3bd9f186785242b96addcc4d30b1 /pkgs/nixgc | |
| parent | 20993feb4a35eb279beab4a7af2c993f5fb620ce (diff) | |
pkgs: auto-import directories *and* files
Diffstat (limited to 'pkgs/nixgc')
| -rw-r--r-- | pkgs/nixgc/default.nix | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pkgs/nixgc/default.nix b/pkgs/nixgc/default.nix deleted file mode 100644 index 9e25bd7..0000000 --- a/pkgs/nixgc/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -# this is a shell script that uses the new nix cli to emulate -# nix-collect-garbage -{ - lib, - writeShellApplication, - nix, - fd, -}: -writeShellApplication { - name = "nixgc"; - - runtimeInputs = [nix fd]; - - text = '' - fd . /nix/var/nix/profiles /home/*/.local/state/nix/profiles -d 3 -t symlink -E '*-link' | while read -r profile; do - nix profile wipe-history --profile "$profile" "$@" - done - ''; - - meta = with lib; { - description = "nix-collect-garbage, but with nix profile"; - maintainers = [maintainers.getchoo]; - platforms = platforms.linux; - }; -} |
