Expand backup and restore capabilities w.r.t. postgresql. #1582
|
@ -13,7 +13,6 @@
|
||||||
clanCore.machineName = "machine";
|
clanCore.machineName = "machine";
|
||||||
clanCore.clanDir = ./.;
|
clanCore.clanDir = ./.;
|
||||||
clan.matrix-synapse = {
|
clan.matrix-synapse = {
|
||||||
enable = true;
|
|
||||||
domain = "clan.test";
|
domain = "clan.test";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,14 +18,22 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.clan.matrix-synapse = {
|
options.clan.matrix-synapse = {
|
||||||
enable = lib.mkEnableOption "Enable matrix-synapse";
|
|
||||||
domain = lib.mkOption {
|
domain = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "The domain name of the matrix server";
|
description = "The domain name of the matrix server";
|
||||||
example = "example.com";
|
example = "example.com";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
imports = [
|
||||||
|
(lib.mkRemovedOptionModule [
|
||||||
|
"clan"
|
||||||
|
"matrix-synapse"
|
||||||
|
"enable"
|
||||||
|
] "Importing the module will already enable the service.")
|
||||||
|
|
||||||
|
../postgresql
|
||||||
|
];
|
||||||
|
config = {
|
||||||
services.matrix-synapse = {
|
services.matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user