From 25124556397ba17bfd70297000270de1e6523b0a Mon Sep 17 00:00:00 2001 From: pennae Date: Fri, 26 Nov 2021 01:16:05 +0100 Subject: nixos/*: add trivial defaultText for options with simple defaults --- nixos/modules/services/misc/matrix-synapse.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nixos/modules/services/misc/matrix-synapse.nix') diff --git a/nixos/modules/services/misc/matrix-synapse.nix b/nixos/modules/services/misc/matrix-synapse.nix index 950c72c6e58..0f96f6b1ee2 100644 --- a/nixos/modules/services/misc/matrix-synapse.nix +++ b/nixos/modules/services/misc/matrix-synapse.nix @@ -227,6 +227,7 @@ in { type = types.str; example = "example.com"; default = config.networking.hostName; + defaultText = literalExpression "config.networking.hostName"; description = '' The domain name of the server, with optional explicit port. This is used by remote servers to look up the server address. @@ -379,6 +380,11 @@ in { default = if versionAtLeast config.system.stateVersion "18.03" then "psycopg2" else "sqlite3"; + defaultText = literalExpression '' + if versionAtLeast config.system.stateVersion "18.03" + then "psycopg2" + else "sqlite3" + ''; description = '' The database engine name. Can be sqlite or psycopg2. ''; -- cgit 1.4.1