improve flake behaviour

This commit is contained in:
Noa Aarts 2024-11-11 00:06:19 +01:00
parent b7ce2d0d90
commit 9a25864f4b
Signed by: noa
GPG key ID: 1850932741EFF672

View file

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