summary refs log tree commit diff
path: root/nixos/modules/services/misc/cgminer.nix
diff options
context:
space:
mode:
authorFritz Otlinghaus <fritz@otlinghaus.it>2021-01-24 13:25:34 +0100
committerEmery Hemingway <ehmry@posteo.net>2021-01-26 12:24:48 +0100
commitd40f7dcb31ab280224b143be047bf681903c6255 (patch)
tree19a13b018fc8a989d3f23e5f0ecadc04b3e62de5 /nixos/modules/services/misc/cgminer.nix
parent2d559b6128bccb57d6baac3fa83d6b428413bfe5 (diff)
downloadnixpkgs-d40f7dcb31ab280224b143be047bf681903c6255.tar
nixpkgs-d40f7dcb31ab280224b143be047bf681903c6255.tar.gz
nixpkgs-d40f7dcb31ab280224b143be047bf681903c6255.tar.bz2
nixpkgs-d40f7dcb31ab280224b143be047bf681903c6255.tar.lz
nixpkgs-d40f7dcb31ab280224b143be047bf681903c6255.tar.xz
nixpkgs-d40f7dcb31ab280224b143be047bf681903c6255.tar.zst
nixpkgs-d40f7dcb31ab280224b143be047bf681903c6255.zip
nixos/cgminer: add types
Diffstat (limited to 'nixos/modules/services/misc/cgminer.nix')
-rw-r--r--nixos/modules/services/misc/cgminer.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/cgminer.nix b/nixos/modules/services/misc/cgminer.nix
index b80a4746fd1..662570f9451 100644
--- a/nixos/modules/services/misc/cgminer.nix
+++ b/nixos/modules/services/misc/cgminer.nix
@@ -41,12 +41,14 @@ in
       };
 
       user = mkOption {
+        type = types.str;
         default = "cgminer";
         description = "User account under which cgminer runs";
       };
 
       pools = mkOption {
         default = [];  # Run benchmark
+        type = types.listOf (types.attrsOf types.str);
         description = "List of pools where to mine";
         example = [{
           url = "http://p2pool.org:9332";
@@ -57,6 +59,7 @@ in
 
       hardware = mkOption {
         default = []; # Run without options
+        type = types.listOf (types.attrsOf (types.either types.str types.int));
         description= "List of config options for every GPU";
         example = [
         {
@@ -83,6 +86,7 @@ in
 
       config = mkOption {
         default = {};
+        type = (types.either types.bool types.int);
         description = "Additional config";
         example = {
           auto-fan = true;