blob: 35aff8f91b31a70dd0d78ee8712395d0442142bb [file] [log] [blame]
Skyler Grey1e5be0e2022-07-25 13:34:13 +01001#!/usr/bin/env bash
Skyler Grey4e10d632022-05-18 21:55:27 +01002
Skyler Grey4bbb5132022-05-31 23:14:33 +01003cd /home/minion/Nix
Skyler Grey4e10d632022-05-18 21:55:27 +01004
5git add .
6
7if [[ $(git diff --stat HEAD) != '' ]]; then
Skyler Grey1e5be0e2022-07-25 13:34:13 +01008 read -e -p "What did you change?: " changes
Skyler Grey4e10d632022-05-18 21:55:27 +01009 /usr/bin/env git commit -am "$changes"
10fi
11
Skyler Grey76d302d2022-08-02 23:15:29 +010012echo "Rebuilding and activating..."
13
Skyler Greyc7213502022-05-21 21:12:24 +010014sudo nixos-rebuild switch --flake .#default $1