This repository has been archived on 2023-05-20. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-config/update.sh

14 lines
181 B
Bash
Executable File

#!/usr/bin/env sh
set -euo pipefail
git fetch -a
git reset --hard
git clean -fd
git pull
# regenerate hardware config
nixos-generate-config
# rebuild system
nixos-rebuild switch