Mark nix code blocks as containing nix code for syntax highlighting
This commit is contained in:
parent
903725dc18
commit
2492eb970f
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue