From e2d4f917a0ab7ec580a34b23437abb2adbe4441a Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 20 Apr 2026 22:41:55 +0000 Subject: [PATCH] Add script for running output of "nix build" --- start-nix-built.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 start-nix-built.sh diff --git a/start-nix-built.sh b/start-nix-built.sh new file mode 100755 index 00000000..e0aa0490 --- /dev/null +++ b/start-nix-built.sh @@ -0,0 +1,17 @@ +#!/run/current-system/sw/bin/bash +# with MITM +# export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && MITM_PROXY=http://127.0.0.1:8080 ./nidus-sync 2>&1 | tee nidus-sync.log +# +# original recipe +#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./nidus-sync 2>&1 | tee nidus-sync.log + +# force production environment +# export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./nidus-sync -prod 2>&1 | tee nidus-sync.log +# +# force production environment, but with debug logging + export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && \ + export $(cat .env | xargs) && \ + ./result/bin/nidus-sync -prod 2>&1 +# +# Use nix build output, force production environment +#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./result/bin/nidus-sync -prod 2>&1 | tee nidus-sync.log