nixos/modules: Remove all usages of types.string

And replace them with a more appropriate type

Also fix up some minor module problems along the way
This commit is contained in:
Silvan Mosberger
2019-08-31 18:19:00 +02:00
parent 69d58ee245
commit 478e7184f8
118 changed files with 325 additions and 324 deletions
@@ -41,13 +41,13 @@ in {
};
accelSpeed = mkOption {
type = types.nullOr types.string;
type = types.nullOr types.str;
default = null;
description = "Cursor acceleration (how fast speed increases from minSpeed to maxSpeed).";
};
buttonMapping = mkOption {
type = types.nullOr types.string;
type = types.nullOr types.str;
default = null;
description =
''
@@ -61,7 +61,7 @@ in {
};
calibrationMatrix = mkOption {
type = types.nullOr types.string;
type = types.nullOr types.str;
default = null;
description =
''
@@ -44,19 +44,19 @@ in {
};
accelFactor = mkOption {
type = types.nullOr types.string;
type = types.nullOr types.str;
default = "0.001";
description = "Cursor acceleration (how fast speed increases from minSpeed to maxSpeed).";
};
minSpeed = mkOption {
type = types.nullOr types.string;
type = types.nullOr types.str;
default = "0.6";
description = "Cursor speed factor for precision finger motion.";
};
maxSpeed = mkOption {
type = types.nullOr types.string;
type = types.nullOr types.str;
default = "1.0";
description = "Cursor speed factor for highest-speed finger motion.";
};