blob: a0f40cb58f57d44c457599d579dfd41db22f21e1 [file] [log] [blame]
Skyler Grey4e10d632022-05-18 21:55:27 +01001#!/bin/sh
2
3cd "$(dirname ${BASH_SOURCE[0]})/.."
4
5git add .
6
7if [[ $(git diff --stat HEAD) != '' ]]; then
8 read -ep "What did you change?: " changes
9 /usr/bin/env git commit -am "$changes"
10fi
11
12sudo nixos-rebuild switch --impure --flake .#systemConfiguration $1
13./result/activate
14unlink ./result