fix rebuild scit for server

This commit is contained in:
joy 2024-10-09 11:14:10 +02:00
parent bbbab50393
commit cf2b6e2d64

View file

@ -14,7 +14,7 @@ if echo "$hostname" | grep -q 'desktop'; then
sudo nixos-rebuild switch --flake ~/nix/#desktop sudo nixos-rebuild switch --flake ~/nix/#desktop
elif echo "$hostname" | grep -q 'laptop'; then elif echo "$hostname" | grep -q 'laptop'; then
sudo nixos-rebuild switch --flake ~/nix/#laptop sudo nixos-rebuild switch --flake ~/nix/#laptop
elif echo "$server" | grep -q 'laptop'; then elif echo "$hostname" | grep -q 'server'; then
sudo nixos-rebuild switch --flake ~/nix/#server sudo nixos-rebuild switch --flake ~/nix/#server
elif echo "$hostname" | grep -q 'localhost'; then elif echo "$hostname" | grep -q 'localhost'; then
nix-on-droid switch --flake ~/nix nix-on-droid switch --flake ~/nix