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