commit ddd5d15c21133ec9f81145f13f114f7300288430 parent 72cc2766375cf025c719592386ca7e1e0344c525 Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 9 Aug 2023 19:08:28 +0200 Make update command work on any node Diffstat:
| M | home-manager/home.nix | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/home-manager/home.nix b/home-manager/home.nix @@ -65,8 +65,7 @@ zsh = { enable = true; shellAliases = { - # TODO: Make this specific to the current running host instead - update = "cd /etc/nixos/nixos && git pull && sudo nixos-rebuild switch --flake .#worker-1 && home-manager switch --flake .#marcel"; + update = "cd /etc/nixos/nixos && git pull && sudo nixos-rebuild switch --flake .#$(hostname) && home-manager switch --flake .#marcel"; }; history = { size = 10000;