add userspace tools and passwdless sudo

This commit is contained in:
2025-11-07 15:05:42 -06:00
parent 1655c0a867
commit 7ef99c8dd1
3 changed files with 10 additions and 2 deletions

View File

@@ -26,7 +26,8 @@ echo "files:"
git status --short
read -rp "commit message: " commit_msg
echo "rebuilding nixos with flake.nix..."
if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
#if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
if ! nh os switch 2>&1 | tee "$logfile"; then
echo "rebuild failed; exited with no commit"
exit 1
fi