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