diff options
author | azahi <azat@bahawi.net> | 2025-02-05 17:18:02 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2025-02-05 17:18:02 +0300 |
commit | ec25e095a26ad1e4823887a6653132948ebc5f87 (patch) | |
tree | f3d9e02f13515e7c63bc716dc39e193924589bc8 /modules/matrix/element.nix | |
parent | 2025-02-02 (diff) |
2025-02-05
Diffstat (limited to 'modules/matrix/element.nix')
-rw-r--r-- | modules/matrix/element.nix | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/matrix/element.nix b/modules/matrix/element.nix index 01b991e..c1c29a7 100644 --- a/modules/matrix/element.nix +++ b/modules/matrix/element.nix @@ -4,28 +4,27 @@ pkgs, ... }: -with lib; let cfg = config.nixfiles.modules.matrix.element; in { options.nixfiles.modules.matrix.element = { - enable = mkEnableOption "Element, a Matrix web interface"; + enable = lib.mkEnableOption "Element, a Matrix web interface"; - domain = mkOption { + domain = lib.mkOption { description = "Domain name sans protocol scheme."; - type = with types; nullOr str; + type = with lib.types; nullOr str; default = "element.${config.networking.domain}"; }; - homeserver = mkOption { + homeserver = lib.mkOption { description = "Default Matrix homeserver."; - type = with types; str; - default = my.domain.azahi; + type = lib.types.str; + default = lib.my.domain.azahi; }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { assertions = [ { assertion = |