From bb2f1e12526d0de0e1bf93a9a2e5d7896d49d070 Mon Sep 17 00:00:00 2001 From: June Date: Sun, 9 Jun 2024 21:24:42 +0200 Subject: [PATCH] Mark nix code blocks as containing nix code for syntax highlighting --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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";