X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fdatabases%2Fredis_replication.nix;h=6ec52c96fc62a6c135c338c2235c919970902643;hb=ab8f306d7c2c49b8116e1af7b355ed2384617ed9;hp=cc626f56b7d8db6cdb0275eaf1b2dadc0bfaa203;hpb=4227853a03923e04daf3dd511a4b5a1ab5d527e7;p=perso%2FImmae%2FConfig%2FNix.git 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 @@ -{ pkgs, config, myconfig, lib, ... }: +{ pkgs, config, lib, ... }: let cfg = config.myServices.databasesReplication.redis; in @@ -63,7 +63,7 @@ in config.redis = { encrypt = true; source = "127.0.0.1:16379"; - target = "${myconfig.env.servers.eldiron.ips.main.ip4}:16379"; + target = "${config.myEnv.servers.eldiron.ips.main.ip4}:16379"; keyfile = "${config.secrets.location}/redis/spiped_eldiron_keyfile"; }; }; @@ -103,7 +103,7 @@ in user = "spiped"; group = "spiped"; permissions = "0400"; - text = myconfig.env.databases.redis.spiped_key; + text = config.myEnv.databases.redis.spiped_key; } ];