mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-18 20:21:53 +00:00
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:
@@ -72,8 +72,8 @@
|
||||
|
||||
shellAliases = {
|
||||
ll = "ls -la";
|
||||
# update = "sudo nixos-rebuild switch --flake .#my-machine";
|
||||
update-laptop = "cd /home/zephrynis/nix-flake && git pull && sudo nixos-rebuild switch --flake .#laptop";
|
||||
update-laptop = "cd ~/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
|
||||
};
|
||||
|
||||
@@ -89,8 +89,8 @@
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
ll = "ls -la";
|
||||
update = "sudo nixos-rebuild switch --flake .#my-machine";
|
||||
update-laptop = "cd /home/zeph/nix-flake && git reset --hard origin/main && git pull && nix flake update && sudo nixos-rebuild switch --flake .#laptop";
|
||||
update-laptop = "cd ~/nix-flake && git pull && sudo nixos-rebuild switch --flake .#laptop";
|
||||
update-desktop = "cd ~/nix-flake && git pull && sudo nixos-rebuild switch --flake .#desktop";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user