#!/usr/bin/env sh

# Rebuild and switch the environment if successful
git add .
sudo ./fmt
sudo nixos-rebuild test --flake .#