From 1a8d684f70ff0ebff91972399b3ccc0cc9dbd64f Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Fri, 14 Jul 2023 23:08:43 -0700 Subject: [PATCH] updated sp.sh --- for_new_sovran_pros/sp.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/for_new_sovran_pros/sp.sh b/for_new_sovran_pros/sp.sh index 118df58..9579862 100644 --- a/for_new_sovran_pros/sp.sh +++ b/for_new_sovran_pros/sp.sh @@ -108,6 +108,8 @@ nixos-rebuild switch --impure # +mkdir /root/.ssh/agenix/agenix-secret-keys + ssh-keygen -q -N "" -t ed25519 -f /root/.ssh/agenix/agenix-secret-keys sed -i -e "0,/root.*/{s::root = $(cat /root/.ssh/agenix/agenix-secret-keys.pub):};s:root@nixos::" /var/lib/agenix-secrets/secrets.nix @@ -116,6 +118,15 @@ sed -i 's:\(root =[[:blank:]]*\)\(.*\):\1"\2";:' /var/lib/agenix-secrets/secrets # +mkdir /var/lib/secrets/nextclouddb +mkdir /var/lib/secrets/wordpressdb +mkdir /var/lib/secrets/matrixdb +mkdir /var/lib/secrets/turn +mkdir /var/lib/secrets/matrix_reg_secret +mkdir /var/lib/secrets/main +mkdir /var/lib/secrets/onlyofficejwtSecretFile +mkdir /var/lib/secrets/vaultwarden/vaultwarden.env + echo -n $(pwgen -s 17 -1) > /var/lib/secrets/nextclouddb echo -n $(pwgen -s 17 -1) > /var/lib/secrets/wordpressdb echo -n $(pwgen -s 17 -1) > /var/lib/secrets/matrixdb @@ -128,6 +139,8 @@ echo -n ADMIN_TOKEN=$(openssl rand -base64 48 # +mkdir /var/lib/agenix-secrets + pushd /var/lib/agenix-secrets/ echo -n $(cat /var/lib/secrets/wordpressdb) | EDITOR='cp /dev/stdin' nix run github:ryantm/agenix -- -e wordpressdb.age -i /root/.ssh/agenix/agenix-secret-keys