git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/matrix-synapse: expose rendered config file as readOnly option
commitb0ab15b0a12a2d9cacba0e0185589d905527df26 authorMaximilian Bosch <maximilian@mbosch.me> dateFri 8 Oct 2021, 14:45 (5 years ago) parent1c1b567
1 file changed+10
nixos/modules/services/misc/matrix-synapse.nix+10
nixos/modules/services/misc/matrix-synapse.nix+10
@@ -122,6 +122,14 @@ in {
122122 options = {
123123 services.matrix-synapse = {
124124 enable = mkEnableOption "matrix.org synapse";
125+ configFile = mkOption {
126+ type = types.str;
127+ readOnly = true;
128+ description = ''
129+ Path to the configuration file on the target system. Useful to configure e.g. workers
130+ that also need this.
131+ '';
132+ };
125133 package = mkOption {
126134 type = types.package;
127135 default = pkgs.matrix-synapse;
@@ -706,6 +714,8 @@ in {
706714 }
707715 ];
708716
717+ services.matrix-synapse.configFile = "${configFile}";
718+
709719 users.users.matrix-synapse = {
710720 group = "matrix-synapse";
711721 home = cfg.dataDir;