piss
This commit is contained in:
parent
351938ba05
commit
2bc6436b22
1 changed files with 4 additions and 5 deletions
|
@ -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>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue