---
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: "hardware",
         position: (6, 16),
        },
        Raw {
         content: "ckb-next",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (10, 5),
        },
       ],
      },
      List {
       elements: [
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (11, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (11, 33),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "ckb",
               position: (11, 44),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "enable",
               position: (11, 50),
              },
             ],
            },
           ],
           position: (11, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (11, 63),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "ckb-next",
               position: (11, 74),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "enable",
               position: (11, 85),
              },
             ],
            },
           ],
           position: (11, 60),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (12, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (12, 33),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "ckb",
               position: (12, 44),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "package",
               position: (12, 50),
              },
             ],
            },
           ],
           position: (12, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (12, 64),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "ckb-next",
               position: (12, 75),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "package",
               position: (12, 86),
              },
             ],
            },
           ],
           position: (12, 61),
          },
         ],
        },
       ],
       position: (10, 15),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (15, 5),
        },
        Raw {
         content: "hardware",
         position: (15, 13),
        },
        Raw {
         content: "ckb-next",
         position: (15, 22),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (16, 7),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (16, 16),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "the Corsair keyboard/mouse driver",
              position: (16, 32),
             },
            ],
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "gid",
            position: (18, 7),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (18, 13),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (19, 9),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (19, 16),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (19, 22),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (19, 29),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "int",
                    position: (19, 35),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (20, 9),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (20, 19),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (21, 9),
                },
               ],
              },
              Int {
               value: 100,
               position: (21, 19),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (22, 9),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Limit access to the ckb daemon to a particular group.\n",
                 position: (23, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (18, 22),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (27, 7),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (27, 17),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (28, 9),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (28, 16),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (28, 22),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (29, 9),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (29, 19),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "ckb-next",
                  position: (29, 24),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (30, 9),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (30, 23),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.ckb-next",
                   position: (30, 42),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (31, 9),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The package implementing the Corsair keyboard/mouse driver.\n",
                 position: (32, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (27, 26),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (15, 33),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (37, 5),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (37, 14),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (37, 19),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (37, 23),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (38, 7),
             },
             Raw {
              content: "systemPackages",
              position: (38, 19),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (38, 38),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "package",
                 position: (38, 42),
                },
               ],
              },
              default: None,
             },
            ],
            position: (38, 36),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (40, 7),
             },
             Raw {
              content: "services",
              position: (40, 15),
             },
             Raw {
              content: "ckb-next",
              position: (40, 24),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (41, 9),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Corsair Keyboards and Mice Daemon",
                 position: (41, 24),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (42, 9),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (42, 22),
                  },
                 ],
                },
               ],
               position: (42, 20),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (43, 9),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (44, 11),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (44, 26),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "package",
                        position: (44, 30),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/ckb-next-daemon ",
                    position: (44, 38),
                   },
                   Expression {
                    expression: FunctionApplication {
                     function: Variable {
                      identifier: "optionalString",
                      position: (44, 61),
                     },
                     arguments: [
                      BinaryOperation {
                       operator: NotEqualTo,
                       operands: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (44, 77),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "gid",
                            position: (44, 81),
                           },
                          ],
                         },
                         default: None,
                        },
                        Variable {
                         identifier: "null",
                         position: (44, 88),
                        },
                       ],
                       position: (44, 85),
                      },
                      String {
                       parts: [
                        Raw {
                         content: "--gid=",
                         position: (44, 95),
                        },
                        Expression {
                         expression: FunctionApplication {
                          function: PropertyAccess {
                           expression: Variable {
                            identifier: "builtins",
                            position: (44, 103),
                           },
                           attribute_path: AttributePath {
                            attributes: [
                             Raw {
                              content: "toString",
                              position: (44, 112),
                             },
                            ],
                           },
                           default: None,
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (44, 121),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "gid",
                               position: (44, 125),
                              },
                             ],
                            },
                            default: None,
                           },
                          ],
                         },
                        },
                       ],
                      },
                     ],
                    },
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Restart",
                    position: (45, 11),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "on-failure",
                    position: (45, 22),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (43, 25),
              },
             ),
            ],
            recursive: false,
            position: (40, 35),
           },
          ),
         ],
         recursive: false,
         position: (37, 30),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (50, 5),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "maintainers",
            position: (51, 7),
           },
          ],
         },
         With {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (51, 26),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "maintainers",
              position: (51, 30),
             },
            ],
           },
           default: None,
          },
          target: List {
           elements: [
            Variable {
             identifier: "kierdavis",
             position: (51, 45),
            },
           ],
           position: (51, 43),
          },
          position: (51, 21),
         },
        ),
       ],
       recursive: false,
       position: (50, 12),
      },
     ),
    ],
    recursive: false,
    position: (9, 3),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}