---
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: (2, 6),
  },
  target: 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: "foldingathome",
         position: (4, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "args",
        position: (6, 3),
       },
      ],
     },
     BinaryOperation {
      operator: Concatenation,
      operands: [
       List {
        elements: [
         String {
          parts: [
           Raw {
            content: "--team",
            position: (7, 7),
           },
          ],
         },
         String {
          parts: [
           Expression {
            expression: FunctionApplication {
             function: Variable {
              identifier: "toString",
              position: (7, 18),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (7, 27),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "team",
                  position: (7, 31),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           },
          ],
         },
        ],
        position: (7, 5),
       },
       BinaryOperation {
        operator: Concatenation,
        operands: [
         FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (8, 8),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "optionals",
              position: (8, 12),
             },
            ],
           },
           default: None,
          },
          arguments: [
           BinaryOperation {
            operator: NotEqualTo,
            operands: [
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (8, 23),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "user",
                 position: (8, 27),
                },
               ],
              },
              default: None,
             },
             Variable {
              identifier: "null",
              position: (8, 35),
             },
            ],
            position: (8, 32),
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "--user",
                position: (8, 43),
               },
              ],
             },
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (8, 51),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "user",
                 position: (8, 55),
                },
               ],
              },
              default: None,
             },
            ],
            position: (8, 41),
           },
          ],
         },
         PropertyAccess {
          expression: Variable {
           identifier: "cfg",
           position: (9, 8),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "extraArgs",
             position: (9, 12),
            },
           ],
          },
          default: None,
         },
        ],
        position: (9, 5),
       },
      ],
      position: (8, 5),
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (13, 3),
        },
       ],
      },
      List {
       elements: [
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (14, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (14, 31),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "foldingAtHome",
               position: (14, 42),
              },
             ],
            },
           ],
           position: (14, 28),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (14, 62),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "foldingathome",
               position: (14, 73),
              },
             ],
            },
           ],
           position: (14, 59),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (15, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (15, 31),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "foldingathome",
               position: (15, 42),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nickname",
               position: (15, 58),
              },
             ],
            },
           ],
           position: (15, 28),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (15, 73),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "foldingathome",
               position: (15, 84),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "user",
               position: (15, 100),
              },
             ],
            },
           ],
           position: (15, 70),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRemovedOptionModule",
          position: (16, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (16, 31),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "foldingathome",
               position: (16, 42),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "config",
               position: (16, 58),
              },
             ],
            },
           ],
           position: (16, 28),
          },
          String {
           parts: [
            Raw {
             content: "Use <literal>services.foldingathome.extraArgs instead<literal>\n",
             position: (17, 1),
            },
           ],
          },
         ],
        },
       ],
       position: (13, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (20, 3),
        },
        Raw {
         content: "services",
         position: (20, 11),
        },
        Raw {
         content: "foldingathome",
         position: (20, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (21, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (21, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "Enable the Folding@home client",
              position: (21, 30),
             },
            ],
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (23, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (23, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (24, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (24, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (24, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (25, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (25, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "fahclient",
                  position: (25, 22),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (26, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (26, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.fahclient",
                   position: (26, 40),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (27, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Which Folding@home client to use.\n",
                 position: (28, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (23, 24),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "user",
            position: (32, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (32, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (33, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (33, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (33, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (33, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "str",
                    position: (33, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (34, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (34, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (35, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The user associated with the reported computation results. This will\nbe used in the ranking statistics.\n",
                 position: (36, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (32, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "team",
            position: (41, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (41, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (42, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (42, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "int",
                  position: (42, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (43, 7),
                },
               ],
              },
              Int {
               value: 236565,
               position: (43, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (44, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The team ID associated with the reported computation results. This\nwill be used in the ranking statistics.\n\nBy default, use the NixOS folding@home team ID is being used.\n",
                 position: (45, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (41, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "daemonNiceLevel",
            position: (52, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (52, 23),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (53, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (53, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "ints",
                   position: (53, 20),
                  },
                  Raw {
                   content: "between",
                   position: (53, 25),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                UnaryOperation {
                 operator: Negate,
                 operand: Int {
                  value: 20,
                  position: (53, 35),
                 },
                 position: (53, 34),
                },
                Int {
                 value: 19,
                 position: (53, 39),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (54, 7),
                },
               ],
              },
              Int {
               value: 0,
               position: (54, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (55, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Daemon process priority for FAHClient.\n0 is the default Unix process priority, 19 is the lowest.\n",
                 position: (56, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (52, 32),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "extraArgs",
            position: (61, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (61, 17),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (62, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (62, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "listOf",
                   position: (62, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (62, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "str",
                    position: (62, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (63, 7),
                },
               ],
              },
              List {
               elements: [],
               position: (63, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (64, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Extra startup options for the FAHClient. Run\n<literal>FAHClient --help</literal> to find all the available options.\n",
                 position: (65, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (61, 26),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (20, 36),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (71, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (71, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (71, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (71, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (72, 5),
             },
             Raw {
              content: "services",
              position: (72, 13),
             },
             Raw {
              content: "foldingathome",
              position: (72, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (73, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Folding@home client",
                 position: (73, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (74, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (74, 18),
                  },
                 ],
                },
               ],
               position: (74, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (75, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (75, 21),
                  },
                 ],
                },
               ],
               position: (75, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "script",
                 position: (76, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "exec ",
                 position: (77, 1),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (77, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "package",
                     position: (77, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/FAHClient ",
                 position: (77, 28),
                },
                Expression {
                 expression: FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "lib",
                    position: (77, 45),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "escapeShellArgs",
                      position: (77, 49),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   Variable {
                    identifier: "args",
                    position: (77, 65),
                   },
                  ],
                 },
                },
                Raw {
                 content: "\n",
                 position: (77, 70),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (79, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "DynamicUser",
                    position: (80, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (80, 23),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "StateDirectory",
                    position: (81, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "foldingathome",
                    position: (81, 27),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Nice",
                    position: (82, 9),
                   },
                  ],
                 },
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (82, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "daemonNiceLevel",
                     position: (82, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "WorkingDirectory",
                    position: (83, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "%S/foldingathome",
                    position: (83, 29),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (79, 23),
              },
             ),
            ],
            recursive: false,
            position: (72, 38),
           },
          ),
         ],
         recursive: false,
         position: (71, 28),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (88, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "maintainers",
            position: (89, 5),
           },
          ],
         },
         With {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (89, 24),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "maintainers",
              position: (89, 28),
             },
            ],
           },
           default: None,
          },
          target: List {
           elements: [
            Variable {
             identifier: "zimbatm",
             position: (89, 43),
            },
           ],
           position: (89, 41),
          },
          position: (89, 19),
         },
        ),
       ],
       recursive: false,
       position: (88, 10),
      },
     ),
    ],
    recursive: false,
    position: (12, 1),
   },
   position: (3, 1),
  },
  position: (2, 1),
 },
 position: (1, 1),
}