From a38ad0445f2a0e6f3b22d2f799f7a1b141b4a98c Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 14 May 2024 10:03:01 +0200 Subject: [PATCH] add initial check to the update service --- hosts/default/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 1217707..73943ff 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -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