From 6f06f3d10b80990e3f79c3c20e32ce74ab957da1 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 21 Sep 2024 07:18:41 +0300 Subject: [PATCH] apps: cluster1: guix: taskrun: Update. --- apps/cluster1/guix/taskrun.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/cluster1/guix/taskrun.yaml b/apps/cluster1/guix/taskrun.yaml index 60b71cbc1..a7c222a38 100644 --- a/apps/cluster1/guix/taskrun.yaml +++ b/apps/cluster1/guix/taskrun.yaml @@ -20,6 +20,12 @@ spec: # TODO: Fix not available resolver provided by Kubernetes. echo "nameserver 192.168.0.145" | sudo tee /etc/resolv.conf guix install git - git clone https://gitlab.com/wigust/dotfiles "${HOME}/.local/share/chezmoi" + if [[ -e "${HOME}/.local/share/chezmoi" ]] + then + : + else + git clone https://gitlab.com/wigust/dotfiles "${HOME}/.local/share/chezmoi" + fi cd "${HOME}/.local/share/chezmoi" || exit 1 + guix pull --channels=dotfiles/channels-current-local-file.scm sudo -i guix system reconfigure "${PWD}/dotfiles/guixsd/vm-guix-datavolume.scm"