fix: make update flake more reliable
This commit is contained in:
parent
ac21d2d46a
commit
6eedbc688c
1 changed files with 1 additions and 0 deletions
|
|
@ -326,6 +326,7 @@
|
||||||
script = ''
|
script = ''
|
||||||
[[ ! -d '/root/nixconf' ]] && cd /root && git clone git@github.com:itepastra/nixconf
|
[[ ! -d '/root/nixconf' ]] && cd /root && git clone git@github.com:itepastra/nixconf
|
||||||
cd /root/nixconf
|
cd /root/nixconf
|
||||||
|
git reset --hard origin/main
|
||||||
git pull
|
git pull
|
||||||
nix flake update --commit-lock-file /root/nixconf
|
nix flake update --commit-lock-file /root/nixconf
|
||||||
nixos-rebuild boot --flake .
|
nixos-rebuild boot --flake .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue