Skyler Grey | 1e5be0e | 2022-07-25 13:34:13 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Skyler Grey | 4e10d63 | 2022-05-18 21:55:27 +0100 | [diff] [blame] | 2 | |
Skyler Grey | 4bbb513 | 2022-05-31 23:14:33 +0100 | [diff] [blame] | 3 | cd /home/minion/Nix |
Skyler Grey | 4e10d63 | 2022-05-18 21:55:27 +0100 | [diff] [blame] | 4 | |
5 | git add . | ||||
6 | |||||
7 | if [[ $(git diff --stat HEAD) != '' ]]; then | ||||
Skyler Grey | 1e5be0e | 2022-07-25 13:34:13 +0100 | [diff] [blame] | 8 | read -e -p "What did you change?: " changes |
Skyler Grey | 4e10d63 | 2022-05-18 21:55:27 +0100 | [diff] [blame] | 9 | /usr/bin/env git commit -am "$changes" |
10 | fi | ||||
11 | |||||
Skyler Grey | 76d302d | 2022-08-02 23:15:29 +0100 | [diff] [blame] | 12 | echo "Rebuilding and activating..." |
13 | |||||
Skyler Grey | c721350 | 2022-05-21 21:12:24 +0100 | [diff] [blame] | 14 | sudo nixos-rebuild switch --flake .#default $1 |