2023-04-16 20:25:58 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
set -euo pipefail
|
|
|
|
|
2023-04-16 20:34:42 +02:00
|
|
|
git fetch -a
|
|
|
|
git reset --hard
|
|
|
|
git clean -fd
|
|
|
|
git pull
|
2023-04-16 20:36:24 +02:00
|
|
|
|
2023-04-16 20:37:30 +02:00
|
|
|
# regenerate hardware config
|
|
|
|
nixos-generate-config
|
|
|
|
|
|
|
|
# rebuild system
|
2023-04-16 20:36:24 +02:00
|
|
|
nixos-rebuild switch
|