Mark nix code blocks as containing nix code for syntax highlighting

This commit is contained in:
June 2024-06-09 21:24:42 +02:00 committed by echtnurich
parent 903725dc18
commit 2492eb970f
Signed by: echtnurich
SSH key fingerprint: SHA256:1eIkxME0VPeXC2WMl9Haus+q0SLFymSAWU7f6Z+A8Aw

View file

@ -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. Note: Nested keys don't seem to be compatible with sops-nix.
5. Add the following entry to the modules of the hosts `nixosConfiguration`: 5. Add the following entry to the modules of the hosts `nixosConfiguration`:
``` ```nix
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
``` ```
6. Create a `sops.nix` in the hosts config directory containing the following content to include the `secrets.yaml`: 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`. 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: 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" = { sops.secrets."forgejo_git_smtp_password" = {
mode = "0440"; mode = "0440";
owner = "forgejo"; owner = "forgejo";