summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorDavid McFarland <corngood@gmail.com>2017-11-04 10:16:31 -0300
committerDavid McFarland <corngood@gmail.com>2018-02-04 21:22:55 -0400
commitfbba0d0ee59a8313177687f6943cf5fca2da6318 (patch)
tree14a9add1c70b33bca92579ec804df8ebdf90a978 /nixos
parenta4b7de74a5a7d1be6698063705e2b01850cfaba1 (diff)
downloadnixlib-fbba0d0ee59a8313177687f6943cf5fca2da6318.tar
nixlib-fbba0d0ee59a8313177687f6943cf5fca2da6318.tar.gz
nixlib-fbba0d0ee59a8313177687f6943cf5fca2da6318.tar.bz2
nixlib-fbba0d0ee59a8313177687f6943cf5fca2da6318.tar.lz
nixlib-fbba0d0ee59a8313177687f6943cf5fca2da6318.tar.xz
nixlib-fbba0d0ee59a8313177687f6943cf5fca2da6318.tar.zst
nixlib-fbba0d0ee59a8313177687f6943cf5fca2da6318.zip
matrix-synapse: default server_name to hostname
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/matrix-synapse.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/matrix-synapse.nix b/nixos/modules/services/misc/matrix-synapse.nix
index b153ebbc98c7..7e880ad09b89 100644
--- a/nixos/modules/services/misc/matrix-synapse.nix
+++ b/nixos/modules/services/misc/matrix-synapse.nix
@@ -186,6 +186,7 @@ in {
       server_name = mkOption {
         type = types.str;
         example = "example.com";
+        default = config.networking.hostName;
         description = ''
           The domain name of the server, with optional explicit port.
           This is used by remote servers to connect to this server,