---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "lirc",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (11, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (12, 5),
           },
           Raw {
            content: "lirc",
            position: (12, 14),
           },
          ],
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "enable",
               position: (14, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (14, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "LIRC daemon",
                 position: (14, 32),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "options",
               position: (16, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (16, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (17, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (17, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "lines",
                     position: (17, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "example",
                    position: (18, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "[lircd]\nnodaemon = False\n",
                    position: (19, 1),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (22, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "LIRC default options descriped in man:lircd(8) (<filename>lirc_options.conf</filename>)",
                    position: (22, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (16, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "configs",
               position: (25, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (25, 17),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (26, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (26, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listOf",
                      position: (26, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (26, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "lines",
                       position: (26, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (27, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Configurations for lircd to load, see man:lircd.conf(5) for details (<filename>lircd.conf</filename>)",
                    position: (27, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (25, 26),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "extraArguments",
               position: (30, 7),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (30, 24),
             },
             arguments: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "type",
                    position: (31, 9),
                   },
                  ],
                 },
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (31, 16),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listOf",
                      position: (31, 22),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (31, 29),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "str",
                       position: (31, 35),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "default",
                    position: (32, 9),
                   },
                  ],
                 },
                 List {
                  elements: [],
                  position: (32, 19),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "description",
                    position: (33, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Extra arguments to lircd.",
                    position: (33, 24),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (30, 33),
              },
             ],
            },
           ),
          ],
          recursive: false,
          position: (12, 21),
         },
        ),
       ],
       recursive: false,
       position: (11, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (40, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (40, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (40, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (40, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (43, 5),
             },
             Raw {
              content: "etc",
              position: (43, 17),
             },
             Expression {
              expression: String {
               parts: [
                Raw {
                 content: "lirc/lirc_options.conf",
                 position: (43, 22),
                },
               ],
              },
             },
             Raw {
              content: "text",
              position: (43, 46),
             },
            ],
           },
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (43, 53),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "options",
               position: (43, 57),
              },
             ],
            },
            default: None,
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "passthru",
              position: (45, 5),
             },
             Raw {
              content: "lirc",
              position: (45, 14),
             },
             Raw {
              content: "socket",
              position: (45, 19),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "/run/lirc/lircd",
              position: (45, 29),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (47, 5),
             },
             Raw {
              content: "systemPackages",
              position: (47, 17),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (47, 36),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "lirc",
                 position: (47, 41),
                },
               ],
              },
              default: None,
             },
            ],
            position: (47, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (49, 5),
             },
             Raw {
              content: "sockets",
              position: (49, 13),
             },
             Raw {
              content: "lircd",
              position: (49, 21),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (50, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "LIRC daemon socket",
                 position: (50, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (51, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "sockets.target",
                   position: (51, 21),
                  },
                 ],
                },
               ],
               position: (51, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "socketConfig",
                 position: (52, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ListenStream",
                    position: (53, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "config",
                   position: (53, 24),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "passthru",
                     position: (53, 31),
                    },
                    Raw {
                     content: "lirc",
                     position: (53, 40),
                    },
                    Raw {
                     content: "socket",
                     position: (53, 45),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "SocketUser",
                    position: (54, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "lirc",
                    position: (54, 23),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "SocketMode",
                    position: (55, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "0660",
                    position: (55, 23),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (52, 22),
              },
             ),
            ],
            recursive: false,
            position: (49, 29),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (59, 5),
             },
             Raw {
              content: "services",
              position: (59, 13),
             },
             Raw {
              content: "lircd",
              position: (59, 22),
             },
            ],
           },
           LetIn {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "configFile",
                 position: (60, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "pkgs",
                 position: (60, 20),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "writeText",
                   position: (60, 25),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "lircd.conf",
                   position: (60, 36),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "builtins",
                   position: (60, 49),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "concatStringsSep",
                     position: (60, 58),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "\n",
                     position: (60, 76),
                    },
                   ],
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (60, 80),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "configs",
                      position: (60, 84),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               ],
              },
             ),
            ],
            target: Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "description",
                  position: (62, 7),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "LIRC daemon service",
                  position: (62, 22),
                 },
                ],
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "after",
                  position: (63, 7),
                 },
                ],
               },
               List {
                elements: [
                 String {
                  parts: [
                   Raw {
                    content: "network.target",
                    position: (63, 18),
                   },
                  ],
                 },
                ],
                position: (63, 15),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "unitConfig",
                  position: (65, 7),
                 },
                 Raw {
                  content: "Documentation",
                  position: (65, 18),
                 },
                ],
               },
               List {
                elements: [
                 String {
                  parts: [
                   Raw {
                    content: "man:lircd(8)",
                    position: (65, 37),
                   },
                  ],
                 },
                ],
                position: (65, 34),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "serviceConfig",
                  position: (67, 7),
                 },
                ],
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "RuntimeDirectory",
                     position: (68, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "lirc",
                       position: (68, 30),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "lirc/lock",
                       position: (68, 37),
                      },
                     ],
                    },
                   ],
                   position: (68, 28),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "RuntimeDirectoryPreserve",
                     position: (74, 9),
                    },
                   ],
                  },
                  Variable {
                   identifier: "true",
                   position: (74, 36),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "PermissionsStartOnly",
                     position: (78, 9),
                    },
                   ],
                  },
                  Variable {
                   identifier: "true",
                   position: (78, 32),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "ExecStartPre",
                     position: (79, 9),
                    },
                   ],
                  },
                  List {
                   elements: [
                    String {
                     parts: [
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "pkgs",
                         position: (80, 14),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "coreutils",
                           position: (80, 19),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/chown lirc /run/lirc/",
                       position: (80, 29),
                      },
                     ],
                    },
                   ],
                   position: (79, 24),
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "ExecStart",
                     position: (83, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "",
                     position: (84, 1),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "pkgs",
                       position: (84, 13),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "lirc",
                         position: (84, 18),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "/bin/lircd --nodaemon \\\n  ",
                     position: (84, 23),
                    },
                    Expression {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "escapeShellArgs",
                       position: (85, 15),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (85, 31),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "extraArguments",
                           position: (85, 35),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                    },
                    Raw {
                     content: " \\\n  ",
                     position: (85, 50),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "configFile",
                      position: (86, 15),
                     },
                    },
                    Raw {
                     content: "\n",
                     position: (86, 26),
                    },
                   ],
                  },
                 ),
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "User",
                     position: (88, 9),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "lirc",
                     position: (88, 17),
                    },
                   ],
                  },
                 ),
                ],
                recursive: false,
                position: (67, 23),
               },
              ),
             ],
             recursive: false,
             position: (61, 8),
            },
            position: (59, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (92, 5),
             },
             Raw {
              content: "users",
              position: (92, 11),
             },
             Raw {
              content: "lirc",
              position: (92, 17),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "uid",
                 position: (93, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (93, 13),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "ids",
                  position: (93, 20),
                 },
                 Raw {
                  content: "uids",
                  position: (93, 24),
                 },
                 Raw {
                  content: "lirc",
                  position: (93, 29),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "group",
                 position: (94, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "lirc",
                 position: (94, 16),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (95, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "LIRC user for lircd",
                 position: (95, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (92, 24),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (98, 5),
             },
             Raw {
              content: "groups",
              position: (98, 11),
             },
             Raw {
              content: "lirc",
              position: (98, 18),
             },
             Raw {
              content: "gid",
              position: (98, 23),
             },
            ],
           },
           PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (98, 29),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "ids",
               position: (98, 36),
              },
              Raw {
               content: "gids",
               position: (98, 40),
              },
              Raw {
               content: "lirc",
               position: (98, 45),
              },
             ],
            },
            default: None,
           },
          ),
         ],
         recursive: false,
         position: (40, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (7, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}