mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-27 14:21:01 +00:00
nixos-module: mangle case in redis settings
This commit is contained in:
parent
0dd28356b6
commit
2980a15eb6
1 changed files with 8 additions and 4 deletions
|
@ -47,9 +47,9 @@
|
|||
type = with types; nullOr path;
|
||||
default = null;
|
||||
};
|
||||
in_topic = mkOption {
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
inTopic = mkOption {
|
||||
type = types.str;
|
||||
default = "relay-in";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -66,7 +66,11 @@
|
|||
pub_key_file = cfg.pubKeyFile;
|
||||
db = "host=/var/run/postgresql user=${cfg.user} dbname=${cfg.database}";
|
||||
redis = if cfg.redis.connection != null
|
||||
then cfg.redis
|
||||
then {
|
||||
connection = cfg.redis.connection;
|
||||
password_file = cfg.redis.passwordFile;
|
||||
in_topic = cfg.redis.inTopic;
|
||||
}
|
||||
else null;
|
||||
});
|
||||
inherit (self.packages.${pkgs.system}) buzzrelay;
|
||||
|
|
Loading…
Reference in a new issue