---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "cgminer",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "convType",
        position: (8, 3),
       },
      ],
     },
     With {
      expression: Variable {
       identifier: "builtins",
       position: (8, 19),
      },
      target: Function {
       argument: Some(
        "v",
       ),
       arguments: FunctionArguments {
        arguments: [],
        ellipsis: false,
       },
       definition: IfThenElse {
        predicate: FunctionApplication {
         function: Variable {
          identifier: "isBool",
          position: (9, 11),
         },
         arguments: [
          Variable {
           identifier: "v",
           position: (9, 18),
          },
         ],
        },
        then: FunctionApplication {
         function: Variable {
          identifier: "boolToString",
          position: (9, 25),
         },
         arguments: [
          Variable {
           identifier: "v",
           position: (9, 38),
          },
         ],
        },
        else_: FunctionApplication {
         function: Variable {
          identifier: "toString",
          position: (9, 45),
         },
         arguments: [
          Variable {
           identifier: "v",
           position: (9, 54),
          },
         ],
        },
        position: (9, 8),
       },
       position: (9, 5),
      },
      position: (8, 14),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "mergedHwConfig",
        position: (10, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "mapAttrsToList",
       position: (11, 5),
      },
      arguments: [
       Function {
        argument: Some(
         "n",
        ),
        arguments: FunctionArguments {
         arguments: [],
         ellipsis: false,
        },
        definition: Function {
         argument: Some(
          "v",
         ),
         arguments: FunctionArguments {
          arguments: [],
          ellipsis: false,
         },
         definition: String {
          parts: [
           Raw {
            content: "\"",
            position: (11, 29),
           },
           Expression {
            expression: Variable {
             identifier: "n",
             position: (11, 32),
            },
           },
           Raw {
            content: "\": \"",
            position: (11, 34),
           },
           Expression {
            expression: FunctionApplication {
             function: Variable {
              identifier: "concatStringsSep",
              position: (11, 41),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: ",",
                 position: (11, 59),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "map",
                position: (11, 63),
               },
               arguments: [
                Variable {
                 identifier: "convType",
                 position: (11, 67),
                },
                Variable {
                 identifier: "v",
                 position: (11, 76),
                },
               ],
              },
             ],
            },
           },
           Raw {
            content: "\"",
            position: (11, 80),
           },
          ],
         },
         position: (11, 24),
        },
        position: (11, 21),
       },
       FunctionApplication {
        function: Variable {
         identifier: "foldAttrs",
         position: (12, 8),
        },
        arguments: [
         Function {
          argument: Some(
           "n",
          ),
          arguments: FunctionArguments {
           arguments: [],
           ellipsis: false,
          },
          definition: Function {
           argument: Some(
            "a",
           ),
           arguments: FunctionArguments {
            arguments: [],
            ellipsis: false,
           },
           definition: BinaryOperation {
            operator: Concatenation,
            operands: [
             List {
              elements: [
               Variable {
                identifier: "n",
                position: (12, 26),
               },
              ],
              position: (12, 25),
             },
             Variable {
              identifier: "a",
              position: (12, 32),
             },
            ],
            position: (12, 29),
           },
           position: (12, 22),
          },
          position: (12, 19),
         },
         List {
          elements: [],
          position: (12, 35),
         },
         PropertyAccess {
          expression: Variable {
           identifier: "cfg",
           position: (12, 38),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "hardware",
             position: (12, 42),
            },
           ],
          },
          default: None,
         },
        ],
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "mergedConfig",
        position: (13, 3),
       },
      ],
     },
     With {
      expression: Variable {
       identifier: "builtins",
       position: (13, 23),
      },
      target: FunctionApplication {
       function: Variable {
        identifier: "mapAttrsToList",
        position: (14, 5),
       },
       arguments: [
        Function {
         argument: Some(
          "n",
         ),
         arguments: FunctionArguments {
          arguments: [],
          ellipsis: false,
         },
         definition: Function {
          argument: Some(
           "v",
          ),
          arguments: FunctionArguments {
           arguments: [],
           ellipsis: false,
          },
          definition: String {
           parts: [
            Raw {
             content: "\"",
             position: (14, 29),
            },
            Expression {
             expression: Variable {
              identifier: "n",
              position: (14, 32),
             },
            },
            Raw {
             content: "\":  ",
             position: (14, 34),
            },
            Expression {
             expression: IfThenElse {
              predicate: FunctionApplication {
               function: Variable {
                identifier: "isBool",
                position: (14, 43),
               },
               arguments: [
                Variable {
                 identifier: "v",
                 position: (14, 50),
                },
               ],
              },
              then: String {
               parts: [],
              },
              else_: String {
               parts: [
                Raw {
                 content: "\"",
                 position: (14, 67),
                },
               ],
              },
              position: (14, 40),
             },
            },
            Expression {
             expression: FunctionApplication {
              function: Variable {
               identifier: "convType",
               position: (14, 73),
              },
              arguments: [
               Variable {
                identifier: "v",
                position: (14, 82),
               },
              ],
             },
            },
            Expression {
             expression: IfThenElse {
              predicate: FunctionApplication {
               function: Variable {
                identifier: "isBool",
                position: (14, 89),
               },
               arguments: [
                Variable {
                 identifier: "v",
                 position: (14, 96),
                },
               ],
              },
              then: String {
               parts: [],
              },
              else_: String {
               parts: [
                Raw {
                 content: "\"",
                 position: (14, 113),
                },
               ],
              },
              position: (14, 86),
             },
            },
           ],
          },
          position: (14, 24),
         },
         position: (14, 21),
        },
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (15, 7),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "config",
            position: (15, 11),
           },
          ],
         },
         default: None,
        },
       ],
      },
      position: (13, 18),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cgminerConfig",
        position: (17, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (17, 19),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (17, 24),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "cgminer.conf",
          position: (17, 35),
         },
        ],
       },
       String {
        parts: [
         Raw {
          content: "{\n",
          position: (18, 1),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "concatStringsSep",
            position: (19, 5),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: ",\n",
               position: (19, 23),
              },
             ],
            },
            Variable {
             identifier: "mergedHwConfig",
             position: (19, 28),
            },
           ],
          },
         },
         Raw {
          content: ",\n",
          position: (19, 43),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "concatStringsSep",
            position: (20, 5),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: ",\n",
               position: (20, 23),
              },
             ],
            },
            Variable {
             identifier: "mergedConfig",
             position: (20, 28),
            },
           ],
          },
         },
         Raw {
          content: ",\n\"pools\": [\n",
          position: (20, 41),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "concatStringsSep",
            position: (22, 5),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: ",\n",
               position: (22, 23),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "map",
              position: (23, 6),
             },
             arguments: [
              Function {
               argument: Some(
                "v",
               ),
               arguments: FunctionArguments {
                arguments: [],
                ellipsis: false,
               },
               definition: String {
                parts: [
                 Raw {
                  content: "{\"url\": \"",
                  position: (23, 16),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "v",
                    position: (23, 27),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "url",
                      position: (23, 29),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "\", \"user\": \"",
                  position: (23, 33),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "v",
                    position: (23, 47),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "user",
                      position: (23, 49),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "\", \"pass\": \"",
                  position: (23, 54),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "v",
                    position: (23, 68),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "pass",
                      position: (23, 70),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "\"}",
                  position: (23, 75),
                 },
                ],
               },
               position: (23, 11),
              },
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (24, 11),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "pools",
                  position: (24, 15),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "]\n}\n",
          position: (24, 22),
         },
        ],
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (30, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (32, 5),
           },
           Raw {
            content: "cgminer",
            position: (32, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (34, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (34, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "cgminer, an ASIC/FPGA/GPU miner for bitcoin and litecoin",
                 position: (34, 32),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "package",
               position: (36, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (36, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (37, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (37, 19),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "cgminer",
                     position: (37, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "defaultText",
                    position: (38, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (38, 23),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "pkgs.cgminer",
                      position: (38, 42),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (39, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Which cgminer derivation to use.",
                    position: (39, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (40, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (40, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "package",
                     position: (40, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
               ],
               recursive: false,
               position: (36, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "user",
               position: (43, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (43, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (44, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (44, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (44, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (45, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "cgminer",
                    position: (45, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (46, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "User account under which cgminer runs",
                    position: (46, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (43, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "pools",
               position: (49, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (49, 15),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (50, 9),
                   },
                  ],
                 },
                 List {
                  elements: [],
                  position: (50, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (51, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (51, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listOf",
                      position: (51, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   FunctionApplication {
                    function: PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (51, 30),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "attrsOf",
                        position: (51, 36),
                       },
                      ],
                     },
                     default: None,
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (51, 44),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "str",
                         position: (51, 50),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (52, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "List of pools where to mine",
                    position: (52, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (53, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "url",
                         position: (54, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "http://p2pool.org:9332",
                         position: (54, 18),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "username",
                         position: (55, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "17EUZxTvs9uRmPsjPZSYUU3zCz9iwstudk",
                         position: (55, 23),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "password",
                         position: (56, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "X",
                         position: (56, 21),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (53, 20),
                   },
                  ],
                  position: (53, 19),
                 },
                ),
               ],
               recursive: false,
               position: (49, 24),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "hardware",
               position: (60, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (60, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (61, 9),
                   },
                  ],
                 },
                 List {
                  elements: [],
                  position: (61, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (62, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (62, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listOf",
                      position: (62, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   FunctionApplication {
                    function: PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (62, 30),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "attrsOf",
                        position: (62, 36),
                       },
                      ],
                     },
                     default: None,
                    },
                    arguments: [
                     FunctionApplication {
                      function: PropertyAccess {
                       expression: Variable {
                        identifier: "types",
                        position: (62, 45),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "either",
                          position: (62, 51),
                         },
                        ],
                       },
                       default: None,
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "types",
                         position: (62, 58),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "str",
                           position: (62, 64),
                          },
                         ],
                        },
                        default: None,
                       },
                       PropertyAccess {
                        expression: Variable {
                         identifier: "types",
                         position: (62, 68),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "int",
                           position: (62, 74),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (63, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "List of config options for every GPU",
                    position: (63, 23),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (64, 9),
                   },
                  ],
                 },
                 List {
                  elements: [
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "intensity",
                         position: (66, 11),
                        },
                       ],
                      },
                      Int {
                       value: 9,
                       position: (66, 23),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-engine",
                         position: (67, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "0-985",
                         position: (67, 25),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-fan",
                         position: (68, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "0-85",
                         position: (68, 22),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-memclock",
                         position: (69, 11),
                        },
                       ],
                      },
                      Int {
                       value: 860,
                       position: (69, 26),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-powertune",
                         position: (70, 11),
                        },
                       ],
                      },
                      Int {
                       value: 20,
                       position: (70, 27),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "temp-cutoff",
                         position: (71, 11),
                        },
                       ],
                      },
                      Int {
                       value: 95,
                       position: (71, 25),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "temp-overheat",
                         position: (72, 11),
                        },
                       ],
                      },
                      Int {
                       value: 85,
                       position: (72, 27),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "temp-target",
                         position: (73, 11),
                        },
                       ],
                      },
                      Int {
                       value: 75,
                       position: (73, 25),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (65, 9),
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "intensity",
                         position: (76, 11),
                        },
                       ],
                      },
                      Int {
                       value: 9,
                       position: (76, 23),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-engine",
                         position: (77, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "0-950",
                         position: (77, 25),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-fan",
                         position: (78, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "0-85",
                         position: (78, 22),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-memclock",
                         position: (79, 11),
                        },
                       ],
                      },
                      Int {
                       value: 825,
                       position: (79, 26),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "gpu-powertune",
                         position: (80, 11),
                        },
                       ],
                      },
                      Int {
                       value: 20,
                       position: (80, 27),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "temp-cutoff",
                         position: (81, 11),
                        },
                       ],
                      },
                      Int {
                       value: 95,
                       position: (81, 25),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "temp-overheat",
                         position: (82, 11),
                        },
                       ],
                      },
                      Int {
                       value: 85,
                       position: (82, 27),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "temp-target",
                         position: (83, 11),
                        },
                       ],
                      },
                      Int {
                       value: 75,
                       position: (83, 25),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (75, 9),
                   },
                  ],
                  position: (64, 19),
                 },
                ),
               ],
               recursive: false,
               position: (60, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "config",
               position: (87, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (87, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (88, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [],
                  recursive: false,
                  position: (88, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (89, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (89, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "attrsOf",
                      position: (89, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   FunctionApplication {
                    function: PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (89, 31),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "either",
                        position: (89, 37),
                       },
                      ],
                     },
                     default: None,
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (89, 44),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "bool",
                         position: (89, 50),
                        },
                       ],
                      },
                      default: None,
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "types",
                       position: (89, 55),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "int",
                         position: (89, 61),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (90, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Additional config",
                    position: (90, 24),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (91, 9),
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "auto-fan",
                       position: (92, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "true",
                     position: (92, 22),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "auto-gpu",
                       position: (93, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "true",
                     position: (93, 22),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "expiry",
                       position: (94, 11),
                      },
                     ],
                    },
                    Int {
                     value: 120,
                     position: (94, 20),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "failover-only",
                       position: (95, 11),
                      },
                     ],
                    },
                    Variable {
                     identifier: "true",
                     position: (95, 27),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "gpu-threads",
                       position: (96, 11),
                      },
                     ],
                    },
                    Int {
                     value: 2,
                     position: (96, 25),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "log",
                       position: (97, 11),
                      },
                     ],
                    },
                    Int {
                     value: 5,
                     position: (97, 17),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "queue",
                       position: (98, 11),
                      },
                     ],
                    },
                    Int {
                     value: 1,
                     position: (98, 19),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "scan-time",
                       position: (99, 11),
                      },
                     ],
                    },
                    Int {
                     value: 60,
                     position: (99, 23),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "temp-histeresys",
                       position: (100, 11),
                      },
                     ],
                    },
                    Int {
                     value: 3,
                     position: (100, 29),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (91, 19),
                 },
                ),
               ],
               recursive: false,
               position: (87, 25),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (32, 24),
         },
        ),
       ],
       recursive: false,
       position: (30, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (109, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (109, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "config",
          position: (109, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (109, 24),
           },
           Raw {
            content: "cgminer",
            position: (109, 33),
           },
           Raw {
            content: "enable",
            position: (109, 41),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (111, 5),
             },
             Raw {
              content: "users",
              position: (111, 11),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (111, 19),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (111, 34),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (111, 38),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "cgminer",
                  position: (111, 47),
                 },
                ],
               },
              ],
              position: (111, 43),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "cgminer",
                   position: (112, 7),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "isSystemUser",
                      position: (113, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "true",
                    position: (113, 24),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "group",
                      position: (114, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "cgminer",
                      position: (114, 18),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "description",
                      position: (115, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "Cgminer user",
                      position: (115, 24),
                     },
                    ],
                   },
                  ),
                 ],
                 recursive: false,
                 position: (112, 17),
                },
               ),
              ],
              recursive: false,
              position: (111, 57),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (118, 5),
             },
             Raw {
              content: "groups",
              position: (118, 11),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (118, 20),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (118, 35),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (118, 39),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "cgminer",
                  position: (118, 48),
                 },
                ],
               },
              ],
              position: (118, 44),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "cgminer",
                   position: (119, 7),
                  },
                 ],
                },
                Map {
                 bindings: [],
                 recursive: false,
                 position: (119, 17),
                },
               ),
              ],
              recursive: false,
              position: (118, 58),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (122, 5),
             },
             Raw {
              content: "systemPackages",
              position: (122, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (122, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "package",
                 position: (122, 40),
                },
               ],
              },
              default: None,
             },
            ],
            position: (122, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (124, 5),
             },
             Raw {
              content: "services",
              position: (124, 13),
             },
             Raw {
              content: "cgminer",
              position: (124, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "path",
                 position: (125, 7),
                },
               ],
              },
              List {
               elements: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (125, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "cgminer",
                    position: (125, 21),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (125, 14),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (127, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (127, 18),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "display-manager.service",
                   position: (127, 35),
                  },
                 ],
                },
               ],
               position: (127, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (128, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (128, 21),
                  },
                 ],
                },
               ],
               position: (128, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "environment",
                 position: (130, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "LD_LIBRARY_PATH",
                    position: (131, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "/run/opengl-driver/lib:/run/opengl-driver-32/lib",
                    position: (131, 28),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "DISPLAY",
                    position: (132, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: ":",
                    position: (132, 20),
                   },
                   Expression {
                    expression: FunctionApplication {
                     function: Variable {
                      identifier: "toString",
                      position: (132, 23),
                     },
                     arguments: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "config",
                        position: (132, 32),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "services",
                          position: (132, 39),
                         },
                         Raw {
                          content: "xserver",
                          position: (132, 48),
                         },
                         Raw {
                          content: "display",
                          position: (132, 56),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                    },
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "GPU_MAX_ALLOC_PERCENT",
                    position: (133, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "100",
                    position: (133, 34),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "GPU_USE_SYNC_OBJECTS",
                    position: (134, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "1",
                    position: (134, 33),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (130, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "startLimitIntervalSec",
                 position: (137, 7),
                },
               ],
              },
              Int {
               value: 60,
               position: (137, 31),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (138, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (139, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (139, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "cgminer",
                        position: (139, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/cgminer --syslog --text-only --config ",
                    position: (139, 37),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "cgminerConfig",
                     position: (139, 82),
                    },
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (140, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (140, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "user",
                     position: (140, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "RestartSec",
                    position: (141, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "30s",
                    position: (141, 23),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (142, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "always",
                    position: (142, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (138, 23),
              },
             ),
            ],
            recursive: false,
            position: (124, 32),
           },
          ),
         ],
         recursive: false,
         position: (109, 48),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (28, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}