Skip to content
Snippets Groups Projects
Commit 3e4e509c authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Merge branch 'module-hygiene' into 'develop'

Access morph module options via config.

See merge request privatestorage/PrivateStorageio!156
parents 2a5718ad 73728c8a
No related branches found
No related tags found
3 merge requests!180merge develop into production,!177merge develop into staging,!156Access morph module options via config.
Pipeline #984 passed
......@@ -4,7 +4,8 @@
# statically known. This value is suitable for use as a module to be imported
# into a more complete system configuration. It is expected that the holes
# will be filled by a sibling module created by ``customize-issuer.nix``.
rec {
{ config, ...}:
{
deployment = {
secrets = {
"ristretto-signing-key" = {
......@@ -51,8 +52,8 @@ rec {
services.private-storage-issuer = {
enable = true;
tls = true;
ristrettoSigningKeyPath = deployment.secrets.ristretto-signing-key.destination;
stripeSecretKeyPath = deployment.secrets.stripe-secret-key.destination;
ristrettoSigningKeyPath = config.deployment.secrets.ristretto-signing-key.destination;
stripeSecretKeyPath = config.deployment.secrets.stripe-secret-key.destination;
database = "SQLite3";
databasePath = "/var/db/vouchers.sqlite3";
};
......
# Similar to ``issuer.nix`` but for a "monitoring"-type system. Holes are
# filled by ``customize-monitoring.nix``.
rec {
{
deployment = {
secrets = {
"monitoringvpn-private-key" = {
......
# Similar to ``issuer.nix`` but for a "storage"-type system. Holes are filled
# by ``customize-storage.nix``.
rec {
{ config, ...} :
{
deployment = {
secrets = {
"ristretto-signing-key" = {
......@@ -48,6 +49,6 @@ rec {
# Yep. Turn it on.
enable = true;
# Give it the Ristretto signing key to support authorization.
ristrettoSigningKeyPath = deployment.secrets.ristretto-signing-key.destination;
ristrettoSigningKeyPath = config.deployment.secrets.ristretto-signing-key.destination;
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment