---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "cfg",
       position: (4, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (4, 9),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "services",
        position: (4, 16),
       },
       Raw {
        content: "lorri",
        position: (4, 25),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "socketPath",
       position: (5, 3),
      },
     ],
    },
    String {
     parts: [
      Raw {
       content: "lorri/daemon.socket",
       position: (5, 17),
      },
     ],
    },
   ),
  ],
  target: Map {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "options",
        position: (7, 3),
       },
      ],
     },
     Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "services",
           position: (8, 5),
          },
          Raw {
           content: "lorri",
           position: (8, 14),
          },
         ],
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "enable",
              position: (9, 7),
             },
            ],
           },
           FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (9, 16),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "mkOption",
                position: (9, 20),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (10, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "false",
                 position: (10, 19),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (11, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (11, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "types",
                    position: (11, 20),
                   },
                   Raw {
                    content: "bool",
                    position: (11, 26),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (12, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "Enables the daemon for `lorri`, a nix-shell replacement for project\ndevelopment. The socket-activated daemon starts on the first request\nissued by the `lorri` command.\n",
                   position: (13, 1),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (9, 29),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "package",
              position: (18, 7),
             },
            ],
           },
           FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (18, 17),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "mkOption",
                position: (18, 21),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (19, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (19, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "lorri",
                    position: (19, 24),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (20, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (20, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "types",
                    position: (20, 20),
                   },
                   Raw {
                    content: "package",
                    position: (20, 26),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (21, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "The lorri package to use.\n",
                   position: (22, 1),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (24, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (24, 23),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "literalExpression",
                     position: (24, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.lorri",
                     position: (24, 46),
                    },
                   ],
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (18, 30),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (8, 22),
        },
       ),
      ],
      recursive: false,
      position: (7, 13),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "config",
        position: (29, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (29, 12),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "mkIf",
          position: (29, 16),
         },
        ],
       },
       default: None,
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (29, 21),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "enable",
           position: (29, 25),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "systemd",
             position: (30, 5),
            },
            Raw {
             content: "user",
             position: (30, 13),
            },
            Raw {
             content: "sockets",
             position: (30, 18),
            },
            Raw {
             content: "lorri",
             position: (30, 26),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "description",
                position: (31, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "Socket for Lorri Daemon",
                position: (31, 22),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "wantedBy",
                position: (32, 7),
               },
              ],
             },
             List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "sockets.target",
                  position: (32, 21),
                 },
                ],
               },
              ],
              position: (32, 18),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "socketConfig",
                position: (33, 7),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ListenStream",
                   position: (34, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "%t/",
                   position: (34, 25),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "socketPath",
                    position: (34, 30),
                   },
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "RuntimeDirectory",
                   position: (35, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "lorri",
                   position: (35, 29),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (33, 22),
             },
            ),
           ],
           recursive: false,
           position: (30, 34),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "systemd",
             position: (39, 5),
            },
            Raw {
             content: "user",
             position: (39, 13),
            },
            Raw {
             content: "services",
             position: (39, 18),
            },
            Raw {
             content: "lorri",
             position: (39, 27),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "description",
                position: (40, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "Lorri Daemon",
                position: (40, 22),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "requires",
                position: (41, 7),
               },
              ],
             },
             List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "lorri.socket",
                  position: (41, 21),
                 },
                ],
               },
              ],
              position: (41, 18),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "after",
                position: (42, 7),
               },
              ],
             },
             List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "lorri.socket",
                  position: (42, 18),
                 },
                ],
               },
              ],
              position: (42, 15),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "path",
                position: (43, 7),
               },
              ],
             },
             With {
              expression: Variable {
               identifier: "pkgs",
               position: (43, 19),
              },
              target: List {
               elements: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (43, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "nix",
                    position: (43, 34),
                   },
                   Raw {
                    content: "package",
                    position: (43, 38),
                   },
                  ],
                 },
                 default: None,
                },
                Variable {
                 identifier: "git",
                 position: (43, 46),
                },
                Variable {
                 identifier: "gnutar",
                 position: (43, 50),
                },
                Variable {
                 identifier: "gzip",
                 position: (43, 57),
                },
               ],
               position: (43, 25),
              },
              position: (43, 14),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "serviceConfig",
                position: (44, 7),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ExecStart",
                   position: (45, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (45, 24),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (45, 28),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/lorri daemon",
                   position: (45, 36),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "PrivateTmp",
                   position: (46, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "true",
                 position: (46, 22),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ProtectSystem",
                   position: (47, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "strict",
                   position: (47, 26),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ProtectHome",
                   position: (48, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "read-only",
                   position: (48, 24),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "Restart",
                   position: (49, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "on-failure",
                   position: (49, 20),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (44, 23),
             },
            ),
           ],
           recursive: false,
           position: (39, 35),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "environment",
             position: (53, 5),
            },
            Raw {
             content: "systemPackages",
             position: (53, 17),
            },
           ],
          },
          List {
           elements: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (53, 36),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "package",
                position: (53, 40),
               },
              ],
             },
             default: None,
            },
           ],
           position: (53, 34),
          },
         ),
        ],
        recursive: false,
        position: (29, 32),
       },
      ],
     },
    ),
   ],
   recursive: false,
   position: (6, 4),
  },
  position: (3, 1),
 },
 position: (1, 1),
}