Refactor install-anywhere script

This commit is contained in:
SebastianStork 2025-09-08 18:18:48 +02:00
parent 225574cbbf
commit 93eb233b14
3 changed files with 30 additions and 22 deletions

View file

@ -50,7 +50,7 @@
pkgs.jq
];
shellHook = ''
export BW_SESSION=$(bw login | awk -F'"' '/export BW_SESSION/ {print $2}')
export BW_SESSION=$(bw login --raw)
export SOPS_AGE_KEY=$(bw get item 'admin age-key' | jq -r '.notes')
export SOPS_CONFIG=${self'.packages.sops-config}
'';