nixos/cgminer: add types
This commit is contained in:
parent
2d559b6128
commit
d40f7dcb31
|
@ -41,12 +41,14 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = "cgminer";
|
default = "cgminer";
|
||||||
description = "User account under which cgminer runs";
|
description = "User account under which cgminer runs";
|
||||||
};
|
};
|
||||||
|
|
||||||
pools = mkOption {
|
pools = mkOption {
|
||||||
default = []; # Run benchmark
|
default = []; # Run benchmark
|
||||||
|
type = types.listOf (types.attrsOf types.str);
|
||||||
description = "List of pools where to mine";
|
description = "List of pools where to mine";
|
||||||
example = [{
|
example = [{
|
||||||
url = "http://p2pool.org:9332";
|
url = "http://p2pool.org:9332";
|
||||||
|
@ -57,6 +59,7 @@ in
|
||||||
|
|
||||||
hardware = mkOption {
|
hardware = mkOption {
|
||||||
default = []; # Run without options
|
default = []; # Run without options
|
||||||
|
type = types.listOf (types.attrsOf (types.either types.str types.int));
|
||||||
description= "List of config options for every GPU";
|
description= "List of config options for every GPU";
|
||||||
example = [
|
example = [
|
||||||
{
|
{
|
||||||
|
@ -83,6 +86,7 @@ in
|
||||||
|
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
|
type = (types.either types.bool types.int);
|
||||||
description = "Additional config";
|
description = "Additional config";
|
||||||
example = {
|
example = {
|
||||||
auto-fan = true;
|
auto-fan = true;
|
||||||
|
|
Loading…
Reference in a new issue