---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "nzbget",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "pkg",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "pkgs",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "nzbget",
         position: (7, 14),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "stateDir",
        position: (8, 3),
       },
      ],
     },
     to: String {
      parts: [
       Raw {
        content: "/var/lib/nzbget",
        position: (8, 15),
       },
      ],
      position: (8, 14),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "configFile",
        position: (9, 3),
       },
      ],
     },
     to: String {
      parts: [
       Expression {
        expression: Variable {
         identifier: "stateDir",
         position: (9, 19),
        },
       },
       Raw {
        content: "/nzbget.conf",
        position: (9, 28),
       },
      ],
      position: (9, 16),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "configOpts",
        position: (10, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: Variable {
       identifier: "concatStringsSep",
       position: (10, 16),
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: " ",
          position: (10, 34),
         },
        ],
        position: (10, 33),
       },
       Parentheses {
        expression: FunctionApplication {
         function: Variable {
          identifier: "mapAttrsToList",
          position: (10, 38),
         },
         arguments: [
          Parentheses {
           expression: Function {
            argument: Simple {
             identifier: "name",
            },
            definition: Function {
             argument: Simple {
              identifier: "value",
             },
             definition: String {
              parts: [
               Raw {
                content: "-o ",
                position: (10, 68),
               },
               Expression {
                expression: Variable {
                 identifier: "name",
                 position: (10, 73),
                },
               },
               Raw {
                content: "=",
                position: (10, 78),
               },
               Expression {
                expression: FunctionApplication {
                 function: Variable {
                  identifier: "escapeShellArg",
                  position: (10, 81),
                 },
                 arguments: [
                  Parentheses {
                   expression: FunctionApplication {
                    function: Variable {
                     identifier: "toStr",
                     position: (10, 97),
                    },
                    arguments: [
                     Variable {
                      identifier: "value",
                      position: (10, 103),
                     },
                    ],
                   },
                   position: (10, 96),
                  },
                 ],
                },
               },
              ],
              position: (10, 67),
             },
             position: (10, 60),
            },
            position: (10, 54),
           },
           position: (10, 53),
          },
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (10, 113),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "settings",
              position: (10, 117),
             },
            ],
           },
           default: None,
          },
         ],
        },
        position: (10, 37),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "toStr",
        position: (11, 3),
       },
      ],
     },
     to: Function {
      argument: Simple {
       identifier: "v",
      },
      definition: IfThenElse {
       predicate: BinaryOperation {
        operator: EqualTo,
        operands: [
         Variable {
          identifier: "v",
          position: (12, 8),
         },
         Variable {
          identifier: "true",
          position: (12, 13),
         },
        ],
        position: (12, 10),
       },
       then: String {
        parts: [
         Raw {
          content: "yes",
          position: (12, 24),
         },
        ],
        position: (12, 23),
       },
       else_: IfThenElse {
        predicate: BinaryOperation {
         operator: EqualTo,
         operands: [
          Variable {
           identifier: "v",
           position: (13, 13),
          },
          Variable {
           identifier: "false",
           position: (13, 18),
          },
         ],
         position: (13, 15),
        },
        then: String {
         parts: [
          Raw {
           content: "no",
           position: (13, 30),
          },
         ],
         position: (13, 29),
        },
        else_: IfThenElse {
         predicate: FunctionApplication {
          function: Variable {
           identifier: "isInt",
           position: (14, 13),
          },
          arguments: [
           Variable {
            identifier: "v",
            position: (14, 19),
           },
          ],
         },
         then: FunctionApplication {
          function: Variable {
           identifier: "toString",
           position: (14, 26),
          },
          arguments: [
           Variable {
            identifier: "v",
            position: (14, 35),
           },
          ],
         },
         else_: Variable {
          identifier: "v",
          position: (15, 10),
         },
         position: (14, 10),
        },
        position: (13, 10),
       },
       position: (12, 5),
      },
      position: (11, 11),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "imports",
         position: (18, 3),
        },
       ],
      },
      to: List {
       elements: [
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "mkRemovedOptionModule",
           position: (19, 6),
          },
          arguments: [
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "services",
                position: (19, 31),
               },
              ],
              position: (19, 30),
             },
             String {
              parts: [
               Raw {
                content: "misc",
                position: (19, 42),
               },
              ],
              position: (19, 41),
             },
             String {
              parts: [
               Raw {
                content: "nzbget",
                position: (19, 49),
               },
              ],
              position: (19, 48),
             },
             String {
              parts: [
               Raw {
                content: "configFile",
                position: (19, 58),
               },
              ],
              position: (19, 57),
             },
            ],
            position: (19, 28),
           },
           String {
            parts: [
             Raw {
              content: "The configuration of nzbget is now managed by users through the web interface.",
              position: (19, 73),
             },
            ],
            position: (19, 72),
           },
          ],
         },
         position: (19, 5),
        },
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "mkRemovedOptionModule",
           position: (20, 6),
          },
          arguments: [
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "services",
                position: (20, 31),
               },
              ],
              position: (20, 30),
             },
             String {
              parts: [
               Raw {
                content: "misc",
                position: (20, 42),
               },
              ],
              position: (20, 41),
             },
             String {
              parts: [
               Raw {
                content: "nzbget",
                position: (20, 49),
               },
              ],
              position: (20, 48),
             },
             String {
              parts: [
               Raw {
                content: "dataDir",
                position: (20, 58),
               },
              ],
              position: (20, 57),
             },
            ],
            position: (20, 28),
           },
           String {
            parts: [
             Raw {
              content: "The data directory for nzbget is now /var/lib/nzbget.",
              position: (20, 70),
             },
            ],
            position: (20, 69),
           },
          ],
         },
         position: (20, 5),
        },
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "mkRemovedOptionModule",
           position: (21, 6),
          },
          arguments: [
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "services",
                position: (21, 31),
               },
              ],
              position: (21, 30),
             },
             String {
              parts: [
               Raw {
                content: "misc",
                position: (21, 42),
               },
              ],
              position: (21, 41),
             },
             String {
              parts: [
               Raw {
                content: "nzbget",
                position: (21, 49),
               },
              ],
              position: (21, 48),
             },
             String {
              parts: [
               Raw {
                content: "openFirewall",
                position: (21, 58),
               },
              ],
              position: (21, 57),
             },
            ],
            position: (21, 28),
           },
           String {
            parts: [
             Raw {
              content: "The port used by nzbget is managed through the web interface so you should adjust your firewall rules accordingly.",
              position: (21, 75),
             },
            ],
            position: (21, 74),
           },
          ],
         },
         position: (21, 5),
        },
       ],
       position: (18, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (26, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "services",
            position: (27, 5),
           },
           Raw {
            content: "nzbget",
            position: (27, 14),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (28, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (28, 16),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "NZBGet",
                 position: (28, 32),
                },
               ],
               position: (28, 31),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "user",
               position: (30, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (30, 14),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (31, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (31, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (31, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (32, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "nzbget",
                    position: (32, 20),
                   },
                  ],
                  position: (32, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (33, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "User account under which NZBGet runs",
                    position: (33, 24),
                   },
                  ],
                  position: (33, 23),
                 },
                },
               ],
               recursive: false,
               position: (30, 23),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "group",
               position: (36, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (36, 15),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (37, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (37, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "str",
                     position: (37, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (38, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "nzbget",
                    position: (38, 20),
                   },
                  ],
                  position: (38, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (39, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Group under which NZBGet runs",
                    position: (39, 24),
                   },
                  ],
                  position: (39, 23),
                 },
                },
               ],
               recursive: false,
               position: (36, 24),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "settings",
               position: (42, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (42, 18),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (43, 9),
                   },
                  ],
                 },
                 to: With {
                  expression: Variable {
                   identifier: "types",
                   position: (43, 21),
                  },
                  target: FunctionApplication {
                   function: Variable {
                    identifier: "attrsOf",
                    position: (43, 28),
                   },
                   arguments: [
                    Parentheses {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "oneOf",
                       position: (43, 37),
                      },
                      arguments: [
                       List {
                        elements: [
                         Variable {
                          identifier: "bool",
                          position: (43, 45),
                         },
                         Variable {
                          identifier: "int",
                          position: (43, 50),
                         },
                         Variable {
                          identifier: "str",
                          position: (43, 54),
                         },
                        ],
                        position: (43, 43),
                       },
                      ],
                     },
                     position: (43, 36),
                    },
                   ],
                  },
                  position: (43, 16),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (44, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [],
                  recursive: false,
                  position: (44, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (45, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "NZBGet configuration, passed via command line using switch -o. Refer to\n<link xlink:href=\"https://github.com/nzbget/nzbget/blob/master/nzbget.conf\"/>\nfor details on supported values.\n",
                    position: (46, 1),
                   },
                  ],
                  position: (45, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (50, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [
                   Binding {
                    from: AttributePath {
                     parts: [
                      Raw {
                       content: "MainDir",
                       position: (51, 11),
                      },
                     ],
                    },
                    to: String {
                     parts: [
                      Raw {
                       content: "/data",
                       position: (51, 22),
                      },
                     ],
                     position: (51, 21),
                    },
                   },
                  ],
                  recursive: false,
                  position: (50, 19),
                 },
                },
               ],
               recursive: false,
               position: (42, 27),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (27, 23),
         },
        },
       ],
       recursive: false,
       position: (26, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (59, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (59, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (59, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (59, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "services",
              position: (60, 5),
             },
             Raw {
              content: "nzbget",
              position: (60, 14),
             },
             Raw {
              content: "settings",
              position: (60, 21),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "OutputMode",
                 position: (62, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "loggable",
                 position: (62, 21),
                },
               ],
               position: (62, 20),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "WriteLog",
                 position: (64, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "none",
                 position: (64, 19),
                },
               ],
               position: (64, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "ErrorTarget",
                 position: (65, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "screen",
                 position: (65, 22),
                },
               ],
               position: (65, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "WarningTarget",
                 position: (66, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "screen",
                 position: (66, 24),
                },
               ],
               position: (66, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "InfoTarget",
                 position: (67, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "screen",
                 position: (67, 21),
                },
               ],
               position: (67, 20),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "DetailTarget",
                 position: (68, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "screen",
                 position: (68, 23),
                },
               ],
               position: (68, 22),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "ConfigTemplate",
                 position: (70, 7),
                },
               ],
              },
              to: String {
               parts: [
                Expression {
                 expression: Variable {
                  identifier: "pkg",
                  position: (70, 27),
                 },
                },
                Raw {
                 content: "/share/nzbget/nzbget.conf",
                 position: (70, 31),
                },
               ],
               position: (70, 24),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "WebDir",
                 position: (71, 7),
                },
               ],
              },
              to: String {
               parts: [
                Expression {
                 expression: Variable {
                  identifier: "pkg",
                  position: (71, 19),
                 },
                },
                Raw {
                 content: "/share/nzbget/webui",
                 position: (71, 23),
                },
               ],
               position: (71, 16),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "UpdateCheck",
                 position: (73, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "none",
                 position: (73, 22),
                },
               ],
               position: (73, 21),
              },
             },
            ],
            recursive: false,
            position: (60, 32),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (76, 5),
             },
             Raw {
              content: "services",
              position: (76, 13),
             },
             Raw {
              content: "nzbget",
              position: (76, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (77, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "NZBGet Daemon",
                 position: (77, 22),
                },
               ],
               position: (77, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (78, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (78, 18),
                  },
                 ],
                 position: (78, 17),
                },
               ],
               position: (78, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (79, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (79, 21),
                  },
                 ],
                 position: (79, 20),
                },
               ],
               position: (79, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "path",
                 position: (80, 7),
                },
               ],
              },
              to: With {
               expression: Variable {
                identifier: "pkgs",
                position: (80, 19),
               },
               target: List {
                elements: [
                 Variable {
                  identifier: "unrar",
                  position: (81, 9),
                 },
                 Variable {
                  identifier: "p7zip",
                  position: (82, 9),
                 },
                ],
                position: (80, 25),
               },
               position: (80, 14),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "preStart",
                 position: (85, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "if [ ! -f ",
                 position: (86, 1),
                },
                Expression {
                 expression: Variable {
                  identifier: "configFile",
                  position: (86, 21),
                 },
                },
                Raw {
                 content: " ]; then\n  ",
                 position: (86, 32),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (87, 13),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "coreutils",
                     position: (87, 18),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/install -m 0700 ",
                 position: (87, 28),
                },
                Expression {
                 expression: Variable {
                  identifier: "pkg",
                  position: (87, 51),
                 },
                },
                Raw {
                 content: "/share/nzbget/nzbget.conf ",
                 position: (87, 55),
                },
                Expression {
                 expression: Variable {
                  identifier: "configFile",
                  position: (87, 83),
                 },
                },
                Raw {
                 content: "\nfi\n",
                 position: (87, 94),
                },
               ],
               position: (85, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (91, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "StateDirectory",
                    position: (92, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "nzbget",
                    position: (92, 27),
                   },
                  ],
                  position: (92, 26),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "StateDirectoryMode",
                    position: (93, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "0750",
                    position: (93, 31),
                   },
                  ],
                  position: (93, 30),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "User",
                    position: (94, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (94, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "user",
                     position: (94, 20),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "Group",
                    position: (95, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (95, 17),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "group",
                     position: (95, 21),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "UMask",
                    position: (96, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "0002",
                    position: (96, 18),
                   },
                  ],
                  position: (96, 17),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "Restart",
                    position: (97, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "on-failure",
                    position: (97, 20),
                   },
                  ],
                  position: (97, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "ExecStart",
                    position: (98, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "pkg",
                     position: (98, 24),
                    },
                   },
                   Raw {
                    content: "/bin/nzbget --server --configfile ",
                    position: (98, 28),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "stateDir",
                     position: (98, 64),
                    },
                   },
                   Raw {
                    content: "/nzbget.conf ",
                    position: (98, 73),
                   },
                   Expression {
                    expression: Variable {
                     identifier: "configOpts",
                     position: (98, 88),
                    },
                   },
                  ],
                  position: (98, 21),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "ExecStop",
                    position: (99, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "pkg",
                     position: (99, 23),
                    },
                   },
                   Raw {
                    content: "/bin/nzbget --quit",
                    position: (99, 27),
                   },
                  ],
                  position: (99, 20),
                 },
                },
               ],
               recursive: false,
               position: (91, 23),
              },
             },
            ],
            recursive: false,
            position: (76, 31),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (103, 5),
             },
             Raw {
              content: "users",
              position: (103, 11),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (103, 19),
            },
            arguments: [
             Parentheses {
              expression: BinaryOperation {
               operator: EqualTo,
               operands: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (103, 25),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "user",
                    position: (103, 29),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "nzbget",
                   position: (103, 38),
                  },
                 ],
                 position: (103, 37),
                },
               ],
               position: (103, 34),
              },
              position: (103, 24),
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "nzbget",
                   position: (104, 7),
                  },
                 ],
                },
                to: Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "home",
                      position: (105, 9),
                     },
                    ],
                   },
                   to: Variable {
                    identifier: "stateDir",
                    position: (105, 16),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "group",
                      position: (106, 9),
                     },
                    ],
                   },
                   to: PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (106, 17),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "group",
                       position: (106, 21),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "uid",
                      position: (107, 9),
                     },
                    ],
                   },
                   to: PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (107, 15),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "ids",
                       position: (107, 22),
                      },
                      Raw {
                       content: "uids",
                       position: (107, 26),
                      },
                      Raw {
                       content: "nzbget",
                       position: (107, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                 ],
                 recursive: false,
                 position: (104, 16),
                },
               },
              ],
              recursive: false,
              position: (103, 47),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (111, 5),
             },
             Raw {
              content: "groups",
              position: (111, 11),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (111, 20),
            },
            arguments: [
             Parentheses {
              expression: BinaryOperation {
               operator: EqualTo,
               operands: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (111, 26),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "group",
                    position: (111, 30),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "nzbget",
                   position: (111, 40),
                  },
                 ],
                 position: (111, 39),
                },
               ],
               position: (111, 36),
              },
              position: (111, 25),
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "nzbget",
                   position: (112, 7),
                  },
                 ],
                },
                to: Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "gid",
                      position: (113, 9),
                     },
                    ],
                   },
                   to: PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (113, 15),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "ids",
                       position: (113, 22),
                      },
                      Raw {
                       content: "gids",
                       position: (113, 26),
                      },
                      Raw {
                       content: "nzbget",
                       position: (113, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                 ],
                 recursive: false,
                 position: (112, 16),
                },
               },
              ],
              recursive: false,
              position: (111, 49),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (59, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (17, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}