fix: make update flake more reliable

This commit is contained in:
Noa Aarts 2024-10-17 11:39:00 +02:00
parent ac21d2d46a
commit 6eedbc688c
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -326,6 +326,7 @@
script = ''
[[ ! -d '/root/nixconf' ]] && cd /root && git clone git@github.com:itepastra/nixconf
cd /root/nixconf
git reset --hard origin/main
git pull
nix flake update --commit-lock-file /root/nixconf
nixos-rebuild boot --flake .