nix/modules/apps/zsh/scripts/rebuild.sh

12 lines
235 B
Bash
Raw Normal View History

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