1
Fork 0
This commit is contained in:
caem 2025-01-18 02:03:45 +01:00
parent 351938ba05
commit 2bc6436b22
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -6,10 +6,9 @@ You need to prepare a couple things before installation due to the way secrets a
### Prepare secrets repo ### Prepare secrets repo
1. Ensure all required dependencies are present 1. Ensure all required dependencies are present.
```sh ```sh
# If you're already using Nix you can simply run this nix-shell -p sops age git
nix-shell -p sops age
``` ```
2. Initialize your secrets repo. You can do this anywhere on your system except this repository. 2. Initialize your secrets repo. You can do this anywhere on your system except this repository.
@ -29,7 +28,7 @@ echo "keys.txt" > .gitignore
age-keygen -o ./keys.txt age-keygen -o ./keys.txt
``` ```
5. Create your sops configuration file 5. Create your sops configuration file.
```sh ```sh
cat <<EOF > .sops.yaml cat <<EOF > .sops.yaml
keys: keys:
@ -42,7 +41,7 @@ creation_rules:
EOF EOF
``` ```
?. Update the submodule to use your repo ?. Update the submodule to use your secrets repository.
```sh ```sh
git submodule set-url -- secrets <ssh uri to your repository> git submodule set-url -- secrets <ssh uri to your repository>
``` ```