blob: 777a5c520c14e21f0654c57097244de1032a8ad7 [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
Skyler Grey677635f2022-05-18 21:58:58 +010012sudo nixos-rebuild switch --impure --flake .# $1
Skyler Grey4e10d632022-05-18 21:55:27 +010013./result/activate
14unlink ./result