treewide: add defaultText for options with simple cfg.* expression defaults

adds defaultText for options with defaults that use only literals, full config.*
paths, and the cfg shortcut binding.
This commit is contained in:
pennae 2021-12-05 21:45:35 +01:00
parent fb0e5be843
commit ed673a69db
18 changed files with 103 additions and 19 deletions

View file

@ -328,6 +328,7 @@ in
useSSL = lib.mkOption {
type = lib.types.bool;
default = cfg.redis.host != "localhost";
defaultText = lib.literalExpression ''config.${opt.redis.host} != "localhost"'';
description = ''
Connect to Redis with SSL.
'';