blob: 8d251b20d72a58ad9ecfeff2eedd4a20b4e7315b [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 Greyc7213502022-05-21 21:12:24 +010012sudo nixos-rebuild switch --flake .#default $1