nix/modules/zsh/rebuild.sh

10 lines
224 B
Bash
Raw Normal View History

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