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