nix/modules/zsh/rebuild.sh
2024-08-31 14:33:03 +02:00

10 lines
224 B
Bash
Executable file

#!/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