From 724bb451056d622e5c178c8c40b552f57d3f573f Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 27 Feb 2023 17:34:48 +0100 Subject: [PATCH] Fix pasting error --- modules/user/root/home/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;