mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
nixos/matrix-synapse: expose rendered config file as readOnly option
This commit is contained in:
parent
1c1b567985
commit
b0ab15b0a1
|
@ -122,6 +122,14 @@ in {
|
||||||
options = {
|
options = {
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = mkEnableOption "matrix.org synapse";
|
enable = mkEnableOption "matrix.org synapse";
|
||||||
|
configFile = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
readOnly = true;
|
||||||
|
description = ''
|
||||||
|
Path to the configuration file on the target system. Useful to configure e.g. workers
|
||||||
|
that also need this.
|
||||||
|
'';
|
||||||
|
};
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.matrix-synapse;
|
default = pkgs.matrix-synapse;
|
||||||
|
@ -706,6 +714,8 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.matrix-synapse.configFile = "${configFile}";
|
||||||
|
|
||||||
users.users.matrix-synapse = {
|
users.users.matrix-synapse = {
|
||||||
group = "matrix-synapse";
|
group = "matrix-synapse";
|
||||||
home = cfg.dataDir;
|
home = cfg.dataDir;
|
||||||
|
|
Loading…
Reference in a new issue