@@ -41,12 +41,14 @@ in
4141 };
4242
4343 user = mkOption {
44+ type = types.str;
4445 default = "cgminer";
4546 description = "User account under which cgminer runs";
4647 };
4748
4849 pools = mkOption {
4950 default = []; # Run benchmark
51+ type = types.listOf (types.attrsOf types.str);
5052 description = "List of pools where to mine";
5153 example = [{
5254 url = "http://p2pool.org:9332";
@@ -57,6 +59,7 @@ in
5759
5860 hardware = mkOption {
5961 default = []; # Run without options
62+ type = types.listOf (types.attrsOf (types.either types.str types.int));
6063 description= "List of config options for every GPU";
6164 example = [
6265 {
@@ -83,6 +86,7 @@ in
8386
8487 config = mkOption {
8588 default = {};
89+ type = (types.either types.bool types.int);
8690 description = "Additional config";
8791 example = {
8892 auto-fan = true;