From bf333a2e134931a37aed08765640055c27774ce4 Mon Sep 17 00:00:00 2001 From: Zephrynis Date: Sun, 26 Oct 2025 23:53:34 +0000 Subject: [PATCH] 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. --- home/home.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/home.nix b/home/home.nix index 69b4684..0014866 100644 --- a/home/home.nix +++ b/home/home.nix @@ -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"; }; };