---
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: (7, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (7, 16),
        },
        Raw {
         content: "triggerhappy",
         position: (7, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "socket",
        position: (9, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "/run/thd.socket",
        position: (9, 13),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "configFile",
        position: (11, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (11, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "writeText",
          position: (11, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "triggerhappy.conf",
          position: (11, 32),
         },
        ],
       },
       String {
        parts: [
         Raw {
          content: "",
          position: (12, 1),
         },
         Expression {
          expression: FunctionApplication {
           function: Variable {
            identifier: "concatMapStringsSep",
            position: (12, 7),
           },
           arguments: [
            String {
             parts: [
              Raw {
               content: "\n",
               position: (12, 28),
              },
             ],
            },
            Function {
             argument: None,
             arguments: FunctionArguments {
              arguments: [
               FunctionArgument {
                identifier: "cmd",
                default: None,
               },
               FunctionArgument {
                identifier: "event",
                default: None,
               },
               FunctionArgument {
                identifier: "keys",
                default: None,
               },
              ],
              ellipsis: true,
             },
             definition: String {
              parts: [
               Expression {
                expression: FunctionApplication {
                 function: Variable {
                  identifier: "concatMapStringsSep",
                  position: (14, 13),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "+",
                     position: (14, 34),
                    },
                   ],
                  },
                  Function {
                   argument: Some(
                    "x",
                   ),
                   arguments: FunctionArguments {
                    arguments: [],
                    ellipsis: false,
                   },
                   definition: BinaryOperation {
                    operator: Addition,
                    operands: [
                     String {
                      parts: [
                       Raw {
                        content: "KEY_",
                        position: (14, 42),
                       },
                      ],
                     },
                     Variable {
                      identifier: "x",
                      position: (14, 50),
                     },
                    ],
                    position: (14, 48),
                   },
                   position: (14, 38),
                  },
                  Variable {
                   identifier: "keys",
                   position: (14, 53),
                  },
                 ],
                },
               },
               Raw {
                content: " ",
                position: (14, 58),
               },
               Expression {
                expression: FunctionApplication {
                 function: Variable {
                  identifier: "toString",
                  position: (14, 61),
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "press",
                         position: (14, 72),
                        },
                       ],
                      },
                      Int {
                       value: 1,
                       position: (14, 80),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "hold",
                         position: (14, 83),
                        },
                       ],
                      },
                      Int {
                       value: 2,
                       position: (14, 90),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "release",
                         position: (14, 93),
                        },
                       ],
                      },
                      Int {
                       value: 0,
                       position: (14, 103),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (14, 70),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Expression {
                      expression: Variable {
                       identifier: "event",
                       position: (14, 110),
                      },
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               },
               Raw {
                content: " ",
                position: (14, 117),
               },
               Expression {
                expression: Variable {
                 identifier: "cmd",
                 position: (14, 120),
                },
               },
              ],
             },
             position: (13, 8),
            },
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (16, 7),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "bindings",
                position: (16, 11),
               },
              ],
             },
             default: None,
            },
           ],
          },
         },
         Raw {
          content: "\n",
          position: (16, 20),
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (17, 7),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "extraConfig",
              position: (17, 11),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: "\n",
          position: (17, 23),
         },
        ],
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "bindingCfg",
        position: (20, 3),
       },
      ],
     },
     Function {
      argument: None,
      arguments: FunctionArguments {
       arguments: [],
       ellipsis: true,
      },
      definition: Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "options",
            position: (21, 5),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "keys",
               position: (23, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (23, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (24, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (24, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listOf",
                      position: (24, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (24, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (24, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (25, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "List of keys to match.  Key names as defined in linux/input-event-codes.h",
                    position: (25, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (23, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "event",
               position: (28, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (28, 15),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (29, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (29, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "enum",
                      position: (29, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   List {
                    elements: [
                     String {
                      parts: [
                       Raw {
                        content: "press",
                        position: (29, 29),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "hold",
                        position: (29, 37),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "release",
                        position: (29, 44),
                       },
                      ],
                     },
                    ],
                    position: (29, 27),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (30, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "press",
                    position: (30, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (31, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Event to match.",
                    position: (31, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (28, 24),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "cmd",
               position: (34, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (34, 13),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (35, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (35, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (35, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (36, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "What to run.",
                    position: (36, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (34, 22),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (21, 15),
         },
        ),
       ],
       recursive: false,
       position: (20, 25),
      },
      position: (20, 16),
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (48, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (50, 5),
           },
           Raw {
            content: "triggerhappy",
            position: (50, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (52, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (52, 16),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (53, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (53, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "bool",
                     position: (53, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (54, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "false",
                  position: (54, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (55, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Whether to enable the <command>triggerhappy</command> hotkey daemon.\n",
                    position: (56, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (52, 25),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "user",
               position: (60, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (60, 14),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (61, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (61, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "str",
                     position: (61, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (62, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "nobody",
                    position: (62, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (63, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "root",
                    position: (63, 20),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (64, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "User account under which <command>triggerhappy</command> runs.\n",
                    position: (65, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (60, 23),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "bindings",
               position: (69, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (69, 18),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (70, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (70, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listOf",
                      position: (70, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   FunctionApplication {
                    function: PropertyAccess {
                     expression: Variable {
                      identifier: "types",
                      position: (70, 30),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "submodule",
                        position: (70, 36),
                       },
                      ],
                     },
                     default: None,
                    },
                    arguments: [
                     Variable {
                      identifier: "bindingCfg",
                      position: (70, 46),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (71, 9),
                   },
                  ],
                 },
                 List {
                  elements: [],
                  position: (71, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (72, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "lib",
                    position: (72, 19),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "literalExpression",
                      position: (72, 23),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "[ { keys = [\"PLAYPAUSE\"];  cmd = \"",
                      position: (73, 1),
                     },
                     Raw {
                      content: "$",
                      position: (73, 45),
                     },
                     Raw {
                      content: "{pkgs.mpc-cli}/bin/mpc -q toggle\"; } ]\n",
                      position: (73, 48),
                     },
                    ],
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (75, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Key bindings for <command>triggerhappy</command>.\n",
                    position: (76, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (69, 27),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (80, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (80, 21),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (81, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (81, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "lines",
                     position: (81, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (82, 9),
                   },
                  ],
                 },
                 String {
                  parts: [],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (83, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Literal contents to append to the end of <command>triggerhappy</command> configuration file.\n",
                    position: (84, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (80, 30),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (50, 29),
         },
        ),
       ],
       recursive: false,
       position: (48, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (95, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (95, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (95, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (95, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (97, 5),
             },
             Raw {
              content: "sockets",
              position: (97, 13),
             },
             Raw {
              content: "triggerhappy",
              position: (97, 21),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (98, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Triggerhappy Socket",
                 position: (98, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (99, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "sockets.target",
                   position: (99, 21),
                  },
                 ],
                },
               ],
               position: (99, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "socketConfig",
                 position: (100, 7),
                },
                Raw {
                 content: "ListenDatagram",
                 position: (100, 20),
                },
               ],
              },
              Variable {
               identifier: "socket",
               position: (100, 37),
              },
             ),
            ],
            recursive: false,
            position: (97, 36),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (103, 5),
             },
             Raw {
              content: "services",
              position: (103, 13),
             },
             Raw {
              content: "triggerhappy",
              position: (103, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (104, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (104, 21),
                  },
                 ],
                },
               ],
               position: (104, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (105, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Global hotkey daemon",
                 position: (105, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (106, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (107, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (107, 24),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "triggerhappy",
                        position: (107, 29),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/bin/thd ",
                    position: (107, 42),
                   },
                   Expression {
                    expression: FunctionApplication {
                     function: Variable {
                      identifier: "optionalString",
                      position: (107, 53),
                     },
                     arguments: [
                      BinaryOperation {
                       operator: NotEqualTo,
                       operands: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (107, 69),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "user",
                            position: (107, 73),
                           },
                          ],
                         },
                         default: None,
                        },
                        String {
                         parts: [
                          Raw {
                           content: "root",
                           position: (107, 82),
                          },
                         ],
                        },
                       ],
                       position: (107, 78),
                      },
                      String {
                       parts: [
                        Raw {
                         content: "--user ",
                         position: (107, 90),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (107, 99),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "user",
                             position: (107, 103),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                       ],
                      },
                     ],
                    },
                   },
                   Raw {
                    content: " --socket ",
                    position: (107, 110),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "socket",
                     position: (107, 122),
                    },
                   },
                   Raw {
                    content: " --triggers ",
                    position: (107, 129),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "configFile",
                     position: (107, 143),
                    },
                   },
                   Raw {
                    content: " --deviceglob /dev/input/event*",
                    position: (107, 154),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (106, 23),
              },
             ),
            ],
            recursive: false,
            position: (103, 37),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (111, 5),
             },
             Raw {
              content: "udev",
              position: (111, 14),
             },
             Raw {
              content: "packages",
              position: (111, 19),
             },
            ],
           },
           FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (111, 30),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "singleton",
                position: (111, 34),
               },
              ],
             },
             default: None,
            },
            arguments: [
             FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (111, 45),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "writeTextFile",
                  position: (111, 50),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "name",
                     position: (112, 7),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "triggerhappy-udev-rules",
                     position: (112, 15),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "destination",
                     position: (113, 7),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "/etc/udev/rules.d/61-triggerhappy.rules",
                     position: (113, 22),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "text",
                     position: (114, 7),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "ACTION==\"add\", SUBSYSTEM==\"input\", KERNEL==\"event[0-9]*\", ATTRS{name}!=\"triggerhappy\", \\\n  RUN+=\"",
                     position: (115, 1),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (116, 19),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "triggerhappy",
                         position: (116, 24),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "/bin/th-cmd --socket ",
                     position: (116, 37),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "socket",
                      position: (116, 60),
                     },
                    },
                    Raw {
                     content: " --passfd --udev\"\n",
                     position: (116, 67),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (111, 64),
               },
              ],
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (95, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (44, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}