Skip to content

Commit

Permalink
fix: garbage collect for current user as well as root
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Aug 17, 2023
1 parent c0d904d commit 82edeb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@
set -U fish_pager_color_progress brwhite '--background=cyan'
'';
shellAbbrs = {
nix-gc = "sudo nix-collect-garbage --delete-older-than 10d";
rebuild-all = "sudo nix-collect-garbage --delete-older-than 10d && sudo nixos-rebuild switch --flake $HOME/Zero/nix-config && home-manager switch -b backup --flake $HOME/Zero/nix-config";
nix-gc = "sudo nix-collect-garbage --delete-older-than 10d && nix-collect-garbage --delete-older-than 10d";
rebuild-all = "sudo nix-collect-garbage --delete-older-than 10d && nix-collect-garbage --delete-older-than 10d && sudo nixos-rebuild switch --flake $HOME/Zero/nix-config && home-manager switch -b backup --flake $HOME/Zero/nix-config";
rebuild-home = "home-manager switch -b backup --flake $HOME/Zero/nix-config";
rebuild-host = "sudo nixos-rebuild switch --flake $HOME/Zero/nix-config";
rebuild-lock = "pushd $HOME/Zero/nix-config && nix flake update && popd";
Expand Down

0 comments on commit 82edeb7

Please sign in to comment.