add initial check to the update service
This commit is contained in:
parent
ca1469ce28
commit
a38ad0445f
1 changed files with 1 additions and 0 deletions
|
|
@ -248,6 +248,7 @@
|
||||||
|
|
||||||
systemd.services."update-flake" = {
|
systemd.services."update-flake" = {
|
||||||
script = ''
|
script = ''
|
||||||
|
[[ ! -d '/root/nixconf' ]] && cd /root && git clone git@github.com:itepastra/nixconf
|
||||||
cd /root/nixconf
|
cd /root/nixconf
|
||||||
git pull
|
git pull
|
||||||
nix flake update --commit-lock-file /root/nixconf
|
nix flake update --commit-lock-file /root/nixconf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue