diff --git a/home.nix b/home.nix index 9936dcb..9f2cf71 100644 --- a/home.nix +++ b/home.nix @@ -49,6 +49,10 @@ bindkey "^[OA" up-line-or-beginning-search bindkey "^[OB" down-line-or-beginning-search + function gc() { + sudo nix-collect-garbage --delete-older-than "''${1:-14}d" + } + function mkenv() { local template="$HOME/nixos-dotfiles/templates/shell-''${1}.nix" if [[ -z "$1" ]]; then