···
strategies = lib.mkOption {
Additional strategies which can be used by fw-fanctrl
55
-
type = lib.types.nullOr (
57
-
lib.types.submodule {
59
-
fanSpeedUpdateFrequency = lib.mkOption {
60
-
type = lib.types.ints.unsigned;
62
-
description = "How often the fan speed should be updated in seconds";
65
-
movingAverageInterval = lib.mkOption {
66
-
type = lib.types.ints.unsigned;
68
-
description = "Interval (seconds) of the last temperatures to use to calculate the average temperature";
55
+
type = lib.types.attrsOf (
56
+
lib.types.submodule {
58
+
fanSpeedUpdateFrequency = lib.mkOption {
59
+
type = lib.types.ints.unsigned;
61
+
description = "How often the fan speed should be updated in seconds";
71
-
speedCurve = lib.mkOption {
73
-
description = "How should the speed curve look like";
74
-
type = lib.types.listOf (
75
-
lib.types.submodule {
77
-
temp = lib.mkOption {
78
-
type = lib.types.int;
80
-
description = "Temperature in °C at which the fan speed should be changed";
64
+
movingAverageInterval = lib.mkOption {
65
+
type = lib.types.ints.unsigned;
67
+
description = "Interval (seconds) of the last temperatures to use to calculate the average temperature";
83
-
speed = lib.mkOption {
84
-
type = lib.types.ints.between 0 100;
86
-
description = "Percent how fast the fan should run at";
70
+
speedCurve = lib.mkOption {
72
+
description = "How should the speed curve look like";
73
+
type = lib.types.listOf (
74
+
lib.types.submodule {
76
+
temp = lib.mkOption {
77
+
type = lib.types.int;
79
+
description = "Temperature in °C at which the fan speed should be changed";
82
+
speed = lib.mkOption {
83
+
type = lib.types.ints.between 0 100;
85
+
description = "Percent how fast the fan should run at";