Add update-desktop shell alias and unify update-laptop

Introduces an update-desktop alias for both shell and starship configurations, and updates the update-laptop alias to use the home directory shortcut for consistency.
This commit is contained in:
2025-10-26 23:53:34 +00:00
parent 7063282916
commit bf333a2e13

View File

@@ -72,8 +72,8 @@
shellAliases = { shellAliases = {
ll = "ls -la"; ll = "ls -la";
# update = "sudo nixos-rebuild switch --flake .#my-machine"; update-laptop = "cd ~/nix-flake && git pull && sudo nixos-rebuild switch --flake .#laptop";
update-laptop = "cd /home/zephrynis/nix-flake && git pull && sudo nixos-rebuild switch --flake .#laptop"; update-desktop = "cd ~/nix-flake && git pull && sudo nixos-rebuild switch --flake .#desktop";
# Add more aliases # Add more aliases
}; };
@@ -89,8 +89,8 @@
enable = true; enable = true;
shellAliases = { shellAliases = {
ll = "ls -la"; ll = "ls -la";
update = "sudo nixos-rebuild switch --flake .#my-machine"; update-laptop = "cd ~/nix-flake && git pull && sudo nixos-rebuild switch --flake .#laptop";
update-laptop = "cd /home/zeph/nix-flake && git reset --hard origin/main && git pull && nix flake update && sudo nixos-rebuild switch --flake .#laptop"; update-desktop = "cd ~/nix-flake && git pull && sudo nixos-rebuild switch --flake .#desktop";
}; };
}; };