aboutsummaryrefslogtreecommitdiff
path: root/modules/private/databases/redis_replication.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-12 00:24:23 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-20 04:12:27 +0100
commitab8f306d7c2c49b8116e1af7b355ed2384617ed9 (patch)
treed1061ec0436fd096de2332a892eb984c63cb125e /modules/private/databases/redis_replication.nix
parent4227853a03923e04daf3dd511a4b5a1ab5d527e7 (diff)
downloadNix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.gz
Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.zst
Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.zip
Add specification for the private config file as a module.
Diffstat (limited to 'modules/private/databases/redis_replication.nix')
-rw-r--r--modules/private/databases/redis_replication.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/databases/redis_replication.nix b/modules/private/databases/redis_replication.nix
index cc626f5..6ec52c9 100644
--- a/modules/private/databases/redis_replication.nix
+++ b/modules/private/databases/redis_replication.nix
@@ -1,4 +1,4 @@
1{ pkgs, config, myconfig, lib, ... }: 1{ pkgs, config, lib, ... }:
2let 2let
3 cfg = config.myServices.databasesReplication.redis; 3 cfg = config.myServices.databasesReplication.redis;
4in 4in
@@ -63,7 +63,7 @@ in
63 config.redis = { 63 config.redis = {
64 encrypt = true; 64 encrypt = true;
65 source = "127.0.0.1:16379"; 65 source = "127.0.0.1:16379";
66 target = "${myconfig.env.servers.eldiron.ips.main.ip4}:16379"; 66 target = "${config.myEnv.servers.eldiron.ips.main.ip4}:16379";
67 keyfile = "${config.secrets.location}/redis/spiped_eldiron_keyfile"; 67 keyfile = "${config.secrets.location}/redis/spiped_eldiron_keyfile";
68 }; 68 };
69 }; 69 };
@@ -103,7 +103,7 @@ in
103 user = "spiped"; 103 user = "spiped";
104 group = "spiped"; 104 group = "spiped";
105 permissions = "0400"; 105 permissions = "0400";
106 text = myconfig.env.databases.redis.spiped_key; 106 text = config.myEnv.databases.redis.spiped_key;
107 } 107 }
108 ]; 108 ];
109 109