---
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: "programs",
         position: (6, 16),
        },
        Raw {
         content: "kbdlight",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (10, 3),
        },
        Raw {
         content: "programs",
         position: (10, 11),
        },
        Raw {
         content: "kbdlight",
         position: (10, 20),
        },
        Raw {
         content: "enable",
         position: (10, 29),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkEnableOption",
        position: (10, 38),
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "kbdlight",
           position: (10, 54),
          },
         ],
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (12, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (12, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (12, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (12, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (13, 5),
             },
             Raw {
              content: "systemPackages",
              position: (13, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (13, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "kbdlight",
                 position: (13, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (13, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "security",
              position: (14, 5),
             },
             Raw {
              content: "wrappers",
              position: (14, 14),
             },
             Raw {
              content: "kbdlight",
              position: (14, 23),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "setuid",
                 position: (15, 9),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (15, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "owner",
                 position: (16, 9),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "root",
                 position: (16, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "group",
                 position: (17, 9),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "root",
                 position: (17, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "source",
                 position: (18, 9),
                },
               ],
              },
              String {
               parts: [
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (18, 21),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "kbdlight",
                     position: (18, 26),
                    },
                    Raw {
                     content: "out",
                     position: (18, 35),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/kbdlight",
                 position: (18, 39),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (15, 7),
           },
          ),
         ],
         recursive: false,
         position: (12, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (9, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}