diff options
Diffstat (limited to 'nix-conf')
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 1e1b8ab..41c6f7b 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -139,10 +139,11 @@ return 2 fi + DOAS=$(command -v doas) if [ $1 -eq 0 ] ; then - doas nix-collect-garbage -d + $DOAS nix-collect-garbage -d else - doas nix-collect-garbage --delete-older-than ''${1}d + $DOAS nix-collect-garbage --delete-older-than ''${1}d fi df -h } |