2024-08-31 14:33:03 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
hostname=$(hostname)
|
|
|
|
|
2024-08-31 15:04:04 +02:00
|
|
|
git add .
|
|
|
|
|
2024-08-31 14:33:03 +02:00
|
|
|
if [[ $hostname == *"desktop"* ]]; then
|
|
|
|
sudo nixos-rebuild switch --flake ~/nix/#desktop
|
|
|
|
elif [[ $hostname == *"laptop"* ]]; then
|
|
|
|
sudo nixos-rebuild switch --flake ~/nix/#laptop
|
|
|
|
fi
|