From 845f1b8bfb106450cd589bc0e0130a35fbfea6d8 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Tue, 8 Aug 2023 14:57:41 +0100 Subject: [PATCH] Add command to cache outputs --- .envrc | 1 + bin/home-cache.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 .envrc create mode 100755 bin/home-cache.sh diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..2c57cdac --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +dotenv_if_exists diff --git a/bin/home-cache.sh b/bin/home-cache.sh new file mode 100755 index 00000000..6860215c --- /dev/null +++ b/bin/home-cache.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -euo pipefail + +. "$(dirname "$(readlink -f "$0")")/utils.sh" + +./bin/home-build.sh --json \ + | jq -r '.[].outputs | to_entries[].value' \ + | cachix push mindriot101-home