diff --git a/programs/bash.nix b/programs/bash.nix index 69b726d..76dcfab 100644 --- a/programs/bash.nix +++ b/programs/bash.nix @@ -51,6 +51,8 @@ toupper = "tr [:lower:] [:upper:]"; tolower = "tr [:upper:] [:lower:]"; rebuild = if (os == "linux") then '' + sudo nix-collect-garbage --delete-older-than 30d && + sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +10 && cd $HOME/.local/os && git pull && nix flake update --commit-lock-file && @@ -60,6 +62,7 @@ git push && cd - '' else '' + nix-collect-garbage --delete-older-than 30d && cd $HOME/.local/os && git pull && nix flake update --commit-lock-file &&