modules: remove deprecated literalExample

This commit is contained in:
xeals 2021-11-13 19:15:05 +11:00
parent 6d3581ac49
commit f5adcca761
3 changed files with 13 additions and 18 deletions

View File

@ -7,7 +7,7 @@ with lib;
cards = mkOption {
type = types.listOf types.str;
default = [ "card0" ];
example = literalExample ''[ "card0" ]'';
example = [ "card0" "card1" ];
description = ''
A list of cards to enable fan configuration for. The identifiers for
each device can be found in /sys/class/drm/ as card0, card1, etc.

View File

@ -33,14 +33,12 @@ in
[ 75 89 ]
[ 80 100 ]
];
example = literalExample ''
[
[ 0 0 ]
[ 40 30 ]
[ 60 50 ]
[ 80 100 ]
]
'';
example = [
[ 0 0 ]
[ 40 30 ]
[ 60 50 ]
[ 80 100 ]
];
description = ''
A list of temperature-fan speed pairs. The temperature is specified in
degrees celcius, and speed is specified in %.

View File

@ -17,17 +17,14 @@ in
type = types.nullOr types.attrs;
default = null;
description = ''
Configuration set alternative to
<literalExpression>configFile</literalExpression>.
Configuration set alternative to <literal>configFile</literal>.
'';
example = ''
{
global = {
monitor = 0;
follow = "none";
};
example = {
global = {
monitor = 0;
follow = "none";
};
'';
};
};
configFile = mkOption {