diff --git a/README.md b/README.md index 52a25e6..b55e1f2 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,11 @@ This is exactly what we're doing to set the default deployment user to `colmena- ``` Note: Nested keys don't seem to be compatible with sops-nix. 5. Add the following entry to the modules of the hosts `nixosConfiguration`: - ``` + ```nix sops-nix.nixosModules.sops ``` 6. Create a `sops.nix` in the hosts config directory containing the following content to include the `secrets.yaml`: - ``` + ```nix { ... }: { @@ -53,7 +53,7 @@ This is exactly what we're doing to set the default deployment user to `colmena- ``` 7. Make sure the `sops.nix` gets imported. For example in the `default.nix`. 8. To use a secret stored under e.g. `forgejo_git_smtp_password`, you can then do something like the following: - ``` + ```nix sops.secrets."forgejo_git_smtp_password" = { mode = "0440"; owner = "forgejo";