update readme
This commit is contained in:
parent
a6e68d4de8
commit
8773346e88
1 changed files with 4 additions and 4 deletions
|
@ -16,6 +16,7 @@ These configurations can import shared modules stored in the modules directory
|
||||||
```
|
```
|
||||||
├── modules
|
├── modules
|
||||||
│ ├── nixin.nix
|
│ ├── nixin.nix
|
||||||
|
│ ├── reverse-proxy.nix
|
||||||
│ ├── users.nix
|
│ ├── users.nix
|
||||||
│ └── wireguard-client.nix
|
│ └── wireguard-client.nix
|
||||||
```
|
```
|
||||||
|
@ -27,13 +28,13 @@ The file `krops.nix` is the main deployment configuration that ties everything u
|
||||||
The servers mush be accessible with ssh as `root` or as a user with passwordless sudo capability, as defined in `krops.nix`
|
The servers mush be accessible with ssh as `root` or as a user with passwordless sudo capability, as defined in `krops.nix`
|
||||||
|
|
||||||
Secrets are stored in a sub directory of a separate git repository, managed with [passwordstore](https://www.passwordstore.org/)
|
Secrets are stored in a sub directory of a separate git repository, managed with [passwordstore](https://www.passwordstore.org/)
|
||||||
This directory must available at ` ~/.password-store/nixin-password-store/krops`. (This is also defined in `krops.nix`)
|
This directory must be available at ` ~/.password-store/nixin-password-store/krops`. (This is also defined in `krops.nix`)
|
||||||
When building the configuration on the server, the secrets files are decrypted and copied to server into the /var/srv/secret directory
|
When deploying a configuration, the secrets files are decrypted and copied to server into the /var/srv/secret directory
|
||||||
Referencing a secret file path in the configuration is done like this :
|
Referencing a secret file path in the configuration is done like this :
|
||||||
```nix
|
```nix
|
||||||
privateKeyFile = toString <secrets/wg-private.key>;
|
privateKeyFile = toString <secrets/wg-private.key>;
|
||||||
```
|
```
|
||||||
If instead the content of the file needs to be substituted into the configuration it can be done like this :
|
If instead the content of a secret file needs to be substituted into the configuration, it can be done like this :
|
||||||
```nix
|
```nix
|
||||||
security.pki.certificates = [ (builtins.readFile toString <secrets/ca-bundle.crt>) ];
|
security.pki.certificates = [ (builtins.readFile toString <secrets/ca-bundle.crt>) ];
|
||||||
```
|
```
|
||||||
|
@ -71,4 +72,3 @@ nixos-rebuild switch -I /var/src
|
||||||
|
|
||||||
## References
|
## References
|
||||||
- krops : https://github.com/krebs/krops
|
- krops : https://github.com/krebs/krops
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue