add initial check to the update service

This commit is contained in:
Noa Aarts 2024-05-14 10:03:01 +02:00
parent ca1469ce28
commit a38ad0445f

View file

@ -248,6 +248,7 @@
systemd.services."update-flake" = {
script = ''
[[ ! -d '/root/nixconf' ]] && cd /root && git clone git@github.com:itepastra/nixconf
cd /root/nixconf
git pull
nix flake update --commit-lock-file /root/nixconf