mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2024-11-25 09:43:28 +01:00
11 lines
175 B
Bash
Executable File
11 lines
175 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail -x
|
|
|
|
mkdir -p var/lib/secrets
|
|
|
|
umask 0177
|
|
sops --extract '["age-key"]' -d "$SOPS_FILE" >./var/lib/secrets/age
|
|
# restore umask
|
|
umask 0022
|