From 1c459761b2f4da809736a3eabfa73cb25d883038 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 13 Jan 2023 23:33:44 +1000 Subject: [PATCH] move website deploy to box --- hosts/box/default.nix | 1 + hosts/curve/default.nix | 1 - hosts/profiles/sync/website/default.nix | 10 +++++----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/box/default.nix b/hosts/box/default.nix index 4bae522a..8dd8d42e 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -18,6 +18,7 @@ ../profiles/calibre ../profiles/wallabag ../profiles/finance + ../profiles/sync/website # ../profiles/archivebox ../profiles/woodpecker-agent ]; diff --git a/hosts/curve/default.nix b/hosts/curve/default.nix index 2bc0b0d0..6b3eb585 100644 --- a/hosts/curve/default.nix +++ b/hosts/curve/default.nix @@ -7,7 +7,6 @@ ../profiles/bluetooth ../profiles/music ../profiles/sync/kitaab - ../profiles/sync/website ../profiles/sync/cal ../profiles/wifi ../profiles/desktop diff --git a/hosts/profiles/sync/website/default.nix b/hosts/profiles/sync/website/default.nix index 3183b9c7..6017b1ce 100644 --- a/hosts/profiles/sync/website/default.nix +++ b/hosts/profiles/sync/website/default.nix @@ -11,13 +11,13 @@ pkgs.deploy ]; script = '' - cd /etc/nixos/ # TODO make variable + cd /home/anish/usr/helm/ + git pull nix flake lock --update-input poonam nix flake lock --update-input basant - # TODO - # git add flake.lock - # git commit -m "update website" - # git push + git add flake.lock + git diff-index --quiet HEAD || git commit -m 'updating website' # if nothing, don't exit 1 + git push deploy .#cube exit 0 '';