diff --git a/home/jopejoe1.nix b/home/jopejoe1.nix index fcb0fbb..8616ce9 100644 --- a/home/jopejoe1.nix +++ b/home/jopejoe1.nix @@ -107,7 +107,7 @@ historyFile = "${config.xdg.stateHome}/bash/history"; shellAliases = { gc = "sudo nix store gc"; - rb = "sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch"; + 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 = config.programs.bash.shellAliases;