From 01f45218cc4630d9dd53afcf002fdd0aeb964c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 29 May 2024 16:12:06 +0200 Subject: [PATCH] matrix-enable: drop enable option --- clanModules/matrix-synapse/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/clanModules/matrix-synapse/default.nix b/clanModules/matrix-synapse/default.nix index 0da0ef9b..3c4ba6ae 100644 --- a/clanModules/matrix-synapse/default.nix +++ b/clanModules/matrix-synapse/default.nix @@ -18,14 +18,20 @@ let in { options.clan.matrix-synapse = { - enable = lib.mkEnableOption "Enable matrix-synapse"; domain = lib.mkOption { type = lib.types.str; description = "The domain name of the matrix server"; 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 = { enable = true; settings = {