nix/home/zsh/rebuild.sh

10 lines
224 B
Bash
Raw Normal View History

2024-08-10 22:09:09 +02:00
#!/bin/sh
hostname=$(hostname)
if [[ $hostname == *"desktop"* ]]; then
2024-08-21 22:35:01 +02:00
sudo nixos-rebuild switch --flake ~/nix/#desktop
2024-08-10 22:09:09 +02:00
elif [[ $hostname == *"laptop"* ]]; then
2024-08-21 22:35:01 +02:00
sudo nixos-rebuild switch --flake ~/nix/#laptop
2024-08-10 22:09:09 +02:00
fi