mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
sops: Fix dev-shell and insaller-script
This commit is contained in:
parent
8be51907fa
commit
697eae282e
2 changed files with 6 additions and 4 deletions
|
|
@ -40,8 +40,9 @@ _: {
|
|||
sed -i -E "s|(agePublicKey\s*=\s*\")[^\"]*(\";)|\1$new_age_key\2|" "hosts/$host/default.nix"
|
||||
|
||||
echo "==> Updating SOPS secrets..."
|
||||
BW_SESSION="$(bw login --raw)"
|
||||
export BW_SESSION
|
||||
if BW_SESSION="$(bw login --raw)"; then
|
||||
export BW_SESSION
|
||||
fi
|
||||
SOPS_AGE_KEY="$(bw get item 'admin age-key' | jq -r '.notes')"
|
||||
export SOPS_AGE_KEY
|
||||
SOPS_CONFIG="$(nix build .#sops-config --print-out-paths)"
|
||||
|
|
|
|||
|
|
@ -50,8 +50,9 @@
|
|||
pkgs.jq
|
||||
];
|
||||
shellHook = ''
|
||||
BW_SESSION="$(bw login --raw)"
|
||||
export BW_SESSION
|
||||
if BW_SESSION="$(bw login --raw)"; then
|
||||
export BW_SESSION
|
||||
fi
|
||||
SOPS_AGE_KEY="$(bw get item 'admin age-key' | jq -r '.notes')"
|
||||
export SOPS_AGE_KEY
|
||||
SOPS_CONFIG="${self'.packages.sops-config}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue