diff --git a/modules/user/root/home/default.nix b/modules/user/root/home/default.nix index 1fe9c51..13fae6d 100644 --- a/modules/user/root/home/default.nix +++ b/modules/user/root/home/default.nix @@ -59,7 +59,10 @@ in bash = { enable = true; historyFile = "${hcfg.xdg.stateHome}/bash/history"; - rb = "sudo git -C /etc/nixos pull && sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch && sudo git -C /etc/nixos add . && sudo git -C /etc/nixos commit -m 'Updated flake.lock' && sudo git -C /etc/nixos push"; + shellAliases = { + gc = "sudo nix store gc"; + rb = "sudo git -C /etc/nixos pull && sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch && sudo git -C /etc/nixos add . && sudo git -C /etc/nixos commit -m 'Updated flake.lock' && sudo git -C /etc/nixos push"; + }; }; zsh.shellAliases = hcfg.programs.bash.shellAliases; fish.shellAbbrs = hcfg.programs.bash.shellAliases;