diff options
author | EuAndreh <eu@euandre.org> | 2018-11-23 22:44:25 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-11-23 22:44:54 -0200 |
commit | fa9a5d9cb1e67684c5d1448c377d96688c23406b (patch) | |
tree | f6b88cd6ba1a7ed8dc48d41af00dfa28eedaa7a0 /scripts/gc.sh | |
parent | Add ledger package. (diff) | |
parent | WIP: forcefully source autojump Bash setup. (diff) | |
download | dotfiles-fa9a5d9cb1e67684c5d1448c377d96688c23406b.tar.gz dotfiles-fa9a5d9cb1e67684c5d1448c377d96688c23406b.tar.xz |
Merge branch 'usurpadinho' into 'master'.
Most configuration now working on new laptop.
Diffstat (limited to 'scripts/gc.sh')
-rwxr-xr-x | scripts/gc.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/gc.sh b/scripts/gc.sh index 2d7a8f3..9b98123 100755 --- a/scripts/gc.sh +++ b/scripts/gc.sh @@ -5,6 +5,7 @@ disk_space() { } before=$(disk_space) + yellow "Cleaning up the NixOS store" profiles=(per-user/root/channels per-user/andreh/profile per-user/andreh/channels system) @@ -20,6 +21,11 @@ nix-store --gc nix-collect-garbage -d +yellow "Cleaning up Guix store" + +guix gc + + yellow "Cleaning up up the Trash and /tmp folders" rm -rf ~/.local/share/Trash/files/* @@ -37,6 +43,7 @@ docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) echo y | docker volume prune +echo y | docker container prune after=$(disk_space) |