Something went wrong. Try again.
My nix configurations.
nixos nix
Something went wrong. Try again.
12345678910111213141516171819#!/usr/bin/env bash
host_file="$1"
if [ -z "$host_file" ]; then echo "usage: ./rebuild.sh <host_file>" exit 1fi
host=$(head -n 1 $host_file)
if [ -z "$host" ]; then echo "could not find host from '$host_file'" exit 1fi
echo "rebuilding '$host' and making it the boot default"sudo nixos-rebuild boot --flake .#$host