matrix-enable: drop enable option

This commit is contained in:
Jörg Thalheim 2024-05-29 16:12:06 +02:00
parent d6a9f6d3f9
commit 7ad11f3a39

View File

@ -18,14 +18,20 @@ 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.")
];
config = {
services.matrix-synapse = { services.matrix-synapse = {
enable = true; enable = true;
settings = { settings = {