---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (5, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (5, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "services",
         position: (5, 16),
        },
        Raw {
         content: "paperless-ng",
         position: (5, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "defaultUser",
        position: (7, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "paperless",
        position: (7, 18),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "hasCustomRedis",
        position: (9, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "hasAttr",
       position: (9, 20),
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "PAPERLESS_REDIS",
          position: (9, 29),
         },
        ],
       },
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (9, 46),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "extraConfig",
           position: (9, 50),
          },
         ],
        },
        default: None,
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "env",
        position: (11, 3),
       },
      ],
     },
     BinaryOperation {
      operator: Update,
      operands: [
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "PAPERLESS_DATA_DIR",
             position: (12, 5),
            },
           ],
          },
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (12, 26),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "dataDir",
              position: (12, 30),
             },
            ],
           },
           default: None,
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "PAPERLESS_MEDIA_ROOT",
             position: (13, 5),
            },
           ],
          },
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (13, 28),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "mediaDir",
              position: (13, 32),
             },
            ],
           },
           default: None,
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "PAPERLESS_CONSUMPTION_DIR",
             position: (14, 5),
            },
           ],
          },
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (14, 33),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "consumptionDir",
              position: (14, 37),
             },
            ],
           },
           default: None,
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "GUNICORN_CMD_ARGS",
             position: (15, 5),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "--bind=",
             position: (15, 26),
            },
            Expression {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (15, 35),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "address",
                 position: (15, 39),
                },
               ],
              },
              default: None,
             },
            },
            Raw {
             content: ":",
             position: (15, 47),
            },
            Expression {
             expression: FunctionApplication {
              function: Variable {
               identifier: "toString",
               position: (15, 50),
              },
              arguments: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (15, 59),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "port",
                   position: (15, 63),
                  },
                 ],
                },
                default: None,
               },
              ],
             },
            },
           ],
          },
         ),
        ],
        recursive: false,
        position: (11, 9),
       },
       BinaryOperation {
        operator: Update,
        operands: [
         FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (17, 5),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "mapAttrs",
              position: (17, 9),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Function {
            argument: Some(
             "_",
            ),
            arguments: FunctionArguments {
             arguments: [],
             ellipsis: false,
            },
            definition: Variable {
             identifier: "toString",
             position: (17, 22),
            },
            position: (17, 19),
           },
           PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (17, 32),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "extraConfig",
               position: (17, 36),
              },
             ],
            },
            default: None,
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "optionalAttrs",
           position: (18, 9),
          },
          arguments: [
           UnaryOperation {
            operator: Not,
            operand: Variable {
             identifier: "hasCustomRedis",
             position: (18, 25),
            },
            position: (18, 24),
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "PAPERLESS_REDIS",
                 position: (19, 5),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "unix://",
                 position: (19, 24),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "config",
                   position: (19, 33),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "services",
                     position: (19, 40),
                    },
                    Raw {
                     content: "redis",
                     position: (19, 49),
                    },
                    Raw {
                     content: "servers",
                     position: (19, 55),
                    },
                    Raw {
                     content: "paperless-ng",
                     position: (19, 63),
                    },
                    Raw {
                     content: "unixSocket",
                     position: (19, 76),
                    },
                   ],
                  },
                  default: None,
                 },
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (18, 41),
           },
          ],
         },
        ],
        position: (18, 5),
       },
      ],
      position: (16, 5),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "manage",
        position: (22, 3),
       },
      ],
     },
     LetIn {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "setupEnv",
           position: (23, 5),
          },
         ],
        },
        FunctionApplication {
         function: PropertyAccess {
          expression: Variable {
           identifier: "lib",
           position: (23, 16),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "concatStringsSep",
             position: (23, 20),
            },
           ],
          },
          default: None,
         },
         arguments: [
          String {
           parts: [
            Raw {
             content: "\n",
             position: (23, 38),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "mapAttrsToList",
            position: (23, 43),
           },
           arguments: [
            Function {
             argument: Some(
              "name",
             ),
             arguments: FunctionArguments {
              arguments: [],
              ellipsis: false,
             },
             definition: Function {
              argument: Some(
               "val",
              ),
              arguments: FunctionArguments {
               arguments: [],
               ellipsis: false,
              },
              definition: String {
               parts: [
                Raw {
                 content: "export ",
                 position: (23, 71),
                },
                Expression {
                 expression: Variable {
                  identifier: "name",
                  position: (23, 80),
                 },
                },
                Raw {
                 content: "=\"",
                 position: (23, 85),
                },
                Expression {
                 expression: Variable {
                  identifier: "val",
                  position: (23, 90),
                 },
                },
                Raw {
                 content: "\"",
                 position: (23, 94),
                },
               ],
              },
              position: (23, 65),
             },
             position: (23, 59),
            },
            Variable {
             identifier: "env",
             position: (23, 99),
            },
           ],
          },
         ],
        },
       ),
      ],
      target: FunctionApplication {
       function: PropertyAccess {
        expression: Variable {
         identifier: "pkgs",
         position: (24, 6),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "writeShellScript",
           position: (24, 11),
          },
         ],
        },
        default: None,
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "manage",
           position: (24, 29),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "",
           position: (25, 1),
          },
          Expression {
           expression: Variable {
            identifier: "setupEnv",
            position: (25, 7),
           },
          },
          Raw {
           content: "\nexec ",
           position: (25, 16),
          },
          Expression {
           expression: PropertyAccess {
            expression: Variable {
             identifier: "cfg",
             position: (26, 12),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "package",
               position: (26, 16),
              },
             ],
            },
            default: None,
           },
          },
          Raw {
           content: "/bin/paperless-ng \"$@\"\n",
           position: (26, 24),
          },
         ],
        },
       ],
      },
      position: (22, 12),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "defaultServiceConfig",
        position: (30, 3),
       },
      ],
     },
     Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "TemporaryFileSystem",
           position: (31, 5),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "/:ro",
           position: (31, 28),
          },
         ],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "BindReadOnlyPaths",
           position: (32, 5),
          },
         ],
        },
        BinaryOperation {
         operator: Concatenation,
         operands: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "/nix/store",
               position: (33, 8),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "-/etc/resolv.conf",
               position: (34, 8),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "-/etc/nsswitch.conf",
               position: (35, 8),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "-/etc/hosts",
               position: (36, 8),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "-/etc/localtime",
               position: (37, 8),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "-/run/postgresql",
               position: (38, 8),
              },
             ],
            },
           ],
           position: (32, 25),
          },
          FunctionApplication {
           function: Variable {
            identifier: "optional",
            position: (39, 11),
           },
           arguments: [
            UnaryOperation {
             operator: Not,
             operand: Variable {
              identifier: "hasCustomRedis",
              position: (39, 22),
             },
             position: (39, 21),
            },
            PropertyAccess {
             expression: Variable {
              identifier: "config",
              position: (39, 38),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "services",
                position: (39, 45),
               },
               Raw {
                content: "redis",
                position: (39, 54),
               },
               Raw {
                content: "servers",
                position: (39, 60),
               },
               Raw {
                content: "paperless-ng",
                position: (39, 68),
               },
               Raw {
                content: "unixSocket",
                position: (39, 81),
               },
              ],
             },
             default: None,
            },
           ],
          },
         ],
         position: (39, 7),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "BindPaths",
           position: (40, 5),
          },
         ],
        },
        List {
         elements: [
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (41, 7),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "consumptionDir",
              position: (41, 11),
             },
            ],
           },
           default: None,
          },
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (42, 7),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "dataDir",
              position: (42, 11),
             },
            ],
           },
           default: None,
          },
          PropertyAccess {
           expression: Variable {
            identifier: "cfg",
            position: (43, 7),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "mediaDir",
              position: (43, 11),
             },
            ],
           },
           default: None,
          },
         ],
         position: (40, 17),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "CapabilityBoundingSet",
           position: (45, 5),
          },
         ],
        },
        String {
         parts: [],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "DeviceAllow",
           position: (47, 5),
          },
         ],
        },
        String {
         parts: [],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "LockPersonality",
           position: (48, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (48, 23),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "MemoryDenyWriteExecute",
           position: (49, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (49, 30),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "NoNewPrivileges",
           position: (50, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (50, 23),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "PrivateDevices",
           position: (51, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (51, 22),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "PrivateMounts",
           position: (52, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (52, 21),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "PrivateNetwork",
           position: (53, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (53, 22),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "PrivateTmp",
           position: (54, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (54, 18),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "PrivateUsers",
           position: (55, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (55, 20),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProcSubset",
           position: (56, 5),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "pid",
           position: (56, 19),
          },
         ],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProtectClock",
           position: (57, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (57, 20),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProtectHostname",
           position: (61, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (61, 23),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProtectControlGroups",
           position: (64, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (64, 28),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProtectKernelLogs",
           position: (65, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (65, 25),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProtectKernelModules",
           position: (66, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (66, 28),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProtectKernelTunables",
           position: (67, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (67, 29),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "ProtectProc",
           position: (68, 5),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "invisible",
           position: (68, 20),
          },
         ],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "RestrictAddressFamilies",
           position: (69, 5),
          },
         ],
        },
        List {
         elements: [
          String {
           parts: [
            Raw {
             content: "AF_UNIX",
             position: (69, 34),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "AF_INET",
             position: (69, 44),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "AF_INET6",
             position: (69, 54),
            },
           ],
          },
         ],
         position: (69, 31),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "RestrictNamespaces",
           position: (70, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (70, 26),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "RestrictRealtime",
           position: (71, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (71, 24),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "RestrictSUIDSGID",
           position: (72, 5),
          },
         ],
        },
        Variable {
         identifier: "true",
         position: (72, 24),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "SupplementaryGroups",
           position: (73, 5),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "optional",
          position: (73, 27),
         },
         arguments: [
          UnaryOperation {
           operator: Not,
           operand: Variable {
            identifier: "hasCustomRedis",
            position: (73, 38),
           },
           position: (73, 37),
          },
          PropertyAccess {
           expression: Variable {
            identifier: "config",
            position: (73, 54),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (73, 61),
             },
             Raw {
              content: "redis",
              position: (73, 70),
             },
             Raw {
              content: "servers",
              position: (73, 76),
             },
             Raw {
              content: "paperless-ng",
              position: (73, 84),
             },
             Raw {
              content: "user",
              position: (73, 97),
             },
            ],
           },
           default: None,
          },
         ],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "SystemCallArchitectures",
           position: (74, 5),
          },
         ],
        },
        String {
         parts: [
          Raw {
           content: "native",
           position: (74, 32),
          },
         ],
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "SystemCallFilter",
           position: (75, 5),
          },
         ],
        },
        List {
         elements: [
          String {
           parts: [
            Raw {
             content: "@system-service",
             position: (75, 27),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "~@privileged @resources @setuid @keyring",
             position: (75, 45),
            },
           ],
          },
         ],
         position: (75, 24),
        },
       ),
      ],
      recursive: false,
      position: (30, 26),
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "meta",
         position: (81, 3),
        },
        Raw {
         content: "maintainers",
         position: (81, 8),
        },
       ],
      },
      With {
       expression: Variable {
        identifier: "maintainers",
        position: (81, 27),
       },
       target: List {
        elements: [
         Variable {
          identifier: "earvstedt",
          position: (81, 42),
         },
         Variable {
          identifier: "Flakebi",
          position: (81, 52),
         },
        ],
        position: (81, 40),
       },
       position: (81, 22),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (83, 3),
        },
       ],
      },
      List {
       elements: [
        FunctionApplication {
         function: Variable {
          identifier: "mkRemovedOptionModule",
          position: (84, 6),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "services",
               position: (84, 31),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "paperless",
               position: (84, 42),
              },
             ],
            },
           ],
           position: (84, 28),
          },
          String {
           parts: [
            Raw {
             content: "The paperless module has been removed as the upstream project died.\nUsers should migrate to the paperless-ng module (services.paperless-ng).\nMore information can be found in the NixOS 21.11 release notes.\n",
             position: (85, 1),
            },
           ],
          },
         ],
        },
       ],
       position: (83, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (91, 3),
        },
        Raw {
         content: "services",
         position: (91, 11),
        },
        Raw {
         content: "paperless-ng",
         position: (91, 20),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (92, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (92, 14),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (93, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (93, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "types",
                  position: (93, 18),
                 },
                 Raw {
                  content: "bool",
                  position: (93, 24),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (94, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (94, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (95, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Enable Paperless-ng.\n\nWhen started, the Paperless database is automatically created if it doesn't\nexist and updated if the Paperless package has changed.\nBoth tasks are achieved by running a Django migration.\n\nA script to manage the Paperless instance (by wrapping Django's manage.py) is linked to\n<literal>",
                 position: (96, 1),
                },
                Raw {
                 content: "$",
                 position: (103, 18),
                },
                Raw {
                 content: "{dataDir}/paperless-ng-manage</literal>.\n",
                 position: (103, 21),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (92, 23),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "dataDir",
            position: (107, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (107, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (108, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (108, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (108, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (109, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/var/lib/paperless",
                 position: (109, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (110, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Directory to store the Paperless data.",
                 position: (110, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (107, 24),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "mediaDir",
            position: (113, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (113, 16),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (114, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (114, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (114, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (115, 7),
                },
               ],
              },
              String {
               parts: [
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (115, 20),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "dataDir",
                     position: (115, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/media",
                 position: (115, 32),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (116, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (116, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "\"",
                   position: (116, 41),
                  },
                  Raw {
                   content: "$",
                   position: (116, 42),
                  },
                  Raw {
                   content: "{dataDir}/media\"",
                   position: (116, 45),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (117, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Directory to store the Paperless documents.",
                 position: (117, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (113, 25),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "consumptionDir",
            position: (120, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (120, 22),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (121, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (121, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (121, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (122, 7),
                },
               ],
              },
              String {
               parts: [
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (122, 20),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "dataDir",
                     position: (122, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/consume",
                 position: (122, 32),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (123, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (123, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "\"",
                   position: (123, 41),
                  },
                  Raw {
                   content: "$",
                   position: (123, 42),
                  },
                  Raw {
                   content: "{dataDir}/consume\"",
                   position: (123, 45),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (124, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Directory from which new documents are imported.",
                 position: (124, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (120, 31),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "consumptionDirIsPublic",
            position: (127, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (127, 30),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (128, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (128, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (128, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (129, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (129, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (130, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether all users can write to the consumption dir.",
                 position: (130, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (127, 39),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "passwordFile",
            position: (133, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (133, 20),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (134, 7),
                },
               ],
              },
              FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (134, 14),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "nullOr",
                   position: (134, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (134, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "path",
                    position: (134, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (135, 7),
                },
               ],
              },
              Variable {
               identifier: "null",
               position: (135, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (136, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "/run/keys/paperless-ng-password",
                 position: (136, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (137, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "A file containing the superuser password.\n\nA superuser is required to access the web interface.\nIf unset, you can create a superuser manually by running\n<literal>",
                 position: (138, 1),
                },
                Raw {
                 content: "$",
                 position: (142, 18),
                },
                Raw {
                 content: "{dataDir}/paperless-ng-manage createsuperuser</literal>.\n\nThe default superuser name is <literal>admin</literal>. To change it, set\noption <option>extraConfig.PAPERLESS_ADMIN_USER</option>.\nWARNING: When changing the superuser name after the initial setup, the old superuser\nwill continue to exist.\n\nTo disable login for the web interface, set the following:\n<literal>extraConfig.PAPERLESS_AUTO_LOGIN_USERNAME = \"admin\";</literal>.\nWARNING: Only use this on a trusted system without internet access to Paperless.\n",
                 position: (142, 21),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (133, 29),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "address",
            position: (155, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (155, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (156, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (156, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (156, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (157, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "localhost",
                 position: (157, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (158, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Web interface address.",
                 position: (158, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (155, 24),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "port",
            position: (161, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (161, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (162, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (162, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "port",
                  position: (162, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (163, 7),
                },
               ],
              },
              Int {
               value: 28981,
               position: (163, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (164, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Web interface port.",
                 position: (164, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (161, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "extraConfig",
            position: (167, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (167, 19),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (168, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (168, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "attrs",
                  position: (168, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (169, 7),
                },
               ],
              },
              Map {
               bindings: [],
               recursive: false,
               position: (169, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (170, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Extra paperless-ng config options.\n\nSee <link xlink:href=\"https://paperless-ng.readthedocs.io/en/latest/configuration.html\">the documentation</link>\nfor available options.\n",
                 position: (171, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (176, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (176, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "{\n  PAPERLESS_OCR_LANGUAGE = \"deu+eng\";\n}\n",
                   position: (177, 1),
                  },
                 ],
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (167, 28),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "user",
            position: (183, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (183, 12),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (184, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (184, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (184, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (185, 7),
                },
               ],
              },
              Variable {
               identifier: "defaultUser",
               position: (185, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (186, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "User under which Paperless runs.",
                 position: (186, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (183, 21),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (189, 5),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (189, 15),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (190, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (190, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "package",
                  position: (190, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (191, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (191, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "paperless-ng",
                  position: (191, 22),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (192, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (192, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "pkgs.paperless-ng",
                   position: (192, 40),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (193, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The Paperless package to use.",
                 position: (193, 22),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (189, 24),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (91, 35),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (197, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (197, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (197, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "enable",
            position: (197, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "services",
              position: (199, 5),
             },
             Raw {
              content: "redis",
              position: (199, 14),
             },
             Raw {
              content: "servers",
              position: (199, 20),
             },
             Raw {
              content: "paperless-ng",
              position: (199, 28),
             },
             Raw {
              content: "enable",
              position: (199, 41),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (199, 50),
            },
            arguments: [
             UnaryOperation {
              operator: Not,
              operand: Variable {
               identifier: "hasCustomRedis",
               position: (199, 57),
              },
              position: (199, 56),
             },
             Variable {
              identifier: "true",
              position: (199, 73),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (201, 5),
             },
             Raw {
              content: "tmpfiles",
              position: (201, 13),
             },
             Raw {
              content: "rules",
              position: (201, 22),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "d '",
                position: (202, 8),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (202, 13),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "dataDir",
                    position: (202, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' - ",
                position: (202, 25),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (202, 31),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "user",
                    position: (202, 35),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (202, 40),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (202, 43),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "users",
                    position: (202, 50),
                   },
                   Raw {
                    content: "users",
                    position: (202, 56),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (202, 64),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "user",
                        position: (202, 68),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "group",
                    position: (202, 74),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (202, 80),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "d '",
                position: (203, 8),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (203, 13),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "mediaDir",
                    position: (203, 17),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "' - ",
                position: (203, 26),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (203, 32),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "user",
                    position: (203, 36),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " ",
                position: (203, 41),
               },
               Expression {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (203, 44),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "users",
                    position: (203, 51),
                   },
                   Raw {
                    content: "users",
                    position: (203, 57),
                   },
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (203, 65),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "user",
                        position: (203, 69),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "group",
                    position: (203, 75),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: " - -",
                position: (203, 81),
               },
              ],
             },
             IfThenElse {
              predicate: PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (204, 11),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "consumptionDirIsPublic",
                  position: (204, 15),
                 },
                ],
               },
               default: None,
              },
              then: String {
               parts: [
                Raw {
                 content: "d '",
                 position: (205, 10),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (205, 15),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "consumptionDir",
                     position: (205, 19),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "' 777 - - - -",
                 position: (205, 34),
                },
               ],
              },
              else_: String {
               parts: [
                Raw {
                 content: "d '",
                 position: (207, 10),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (207, 15),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "consumptionDir",
                     position: (207, 19),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "' - ",
                 position: (207, 34),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (207, 40),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "user",
                     position: (207, 44),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " ",
                 position: (207, 49),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "config",
                   position: (207, 52),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "users",
                     position: (207, 59),
                    },
                    Raw {
                     content: "users",
                     position: (207, 65),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (207, 73),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "user",
                         position: (207, 77),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "group",
                     position: (207, 83),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " - -",
                 position: (207, 89),
                },
               ],
              },
              position: (204, 8),
             },
            ],
            position: (201, 30),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (211, 5),
             },
             Raw {
              content: "services",
              position: (211, 13),
             },
             Raw {
              content: "paperless-ng-server",
              position: (211, 22),
             },
            ],
           },
           BinaryOperation {
            operator: Update,
            operands: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (212, 7),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "Paperless document server",
                   position: (212, 22),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "serviceConfig",
                   position: (213, 7),
                  },
                 ],
                },
                BinaryOperation {
                 operator: Update,
                 operands: [
                  Variable {
                   identifier: "defaultServiceConfig",
                   position: (213, 23),
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "User",
                        position: (214, 9),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (214, 16),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "user",
                         position: (214, 20),
                        },
                       ],
                      },
                      default: None,
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ExecStart",
                        position: (215, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Expression {
                        expression: PropertyAccess {
                         expression: Variable {
                          identifier: "cfg",
                          position: (215, 24),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "package",
                            position: (215, 28),
                           },
                          ],
                         },
                         default: None,
                        },
                       },
                       Raw {
                        content: "/bin/paperless-ng qcluster",
                        position: (215, 36),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "Restart",
                        position: (216, 9),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "on-failure",
                        position: (216, 20),
                       },
                      ],
                     },
                    ),
                   ],
                   recursive: false,
                   position: (213, 47),
                  },
                 ],
                 position: (213, 44),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "environment",
                   position: (218, 7),
                  },
                 ],
                },
                Variable {
                 identifier: "env",
                 position: (218, 21),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "wantedBy",
                   position: (219, 7),
                  },
                 ],
                },
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "multi-user.target",
                     position: (219, 21),
                    },
                   ],
                  },
                 ],
                 position: (219, 18),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "wants",
                   position: (220, 7),
                  },
                 ],
                },
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "paperless-ng-consumer.service",
                     position: (220, 18),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "paperless-ng-web.service",
                     position: (220, 50),
                    },
                   ],
                  },
                 ],
                 position: (220, 15),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "preStart",
                   position: (222, 7),
                  },
                 ],
                },
                BinaryOperation {
                 operator: Addition,
                 operands: [
                  String {
                   parts: [
                    Raw {
                     content: "ln -sf ",
                     position: (223, 1),
                    },
                    Expression {
                     expression: Variable {
                      identifier: "manage",
                      position: (223, 18),
                     },
                    },
                    Raw {
                     content: " ",
                     position: (223, 25),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (223, 28),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "dataDir",
                         position: (223, 32),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "/paperless-ng-manage\n\n# Auto-migrate on first run or if the package has changed\nversionFile=\"",
                     position: (223, 40),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (226, 24),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "dataDir",
                         position: (226, 28),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "/src-version\"\nif [[ $(cat \"$versionFile\" 2>/dev/null) != ",
                     position: (226, 36),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (227, 54),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "package",
                         position: (227, 58),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: " ]]; then\n  ",
                     position: (227, 66),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (228, 13),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "package",
                         position: (228, 17),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: "/bin/paperless-ng migrate\n  echo ",
                     position: (228, 25),
                    },
                    Expression {
                     expression: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (229, 18),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "package",
                         position: (229, 22),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Raw {
                     content: " > \"$versionFile\"\nfi\n",
                     position: (229, 30),
                    },
                   ],
                  },
                  FunctionApplication {
                   function: Variable {
                    identifier: "optionalString",
                    position: (232, 9),
                   },
                   arguments: [
                    BinaryOperation {
                     operator: NotEqualTo,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (232, 25),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "passwordFile",
                          position: (232, 29),
                         },
                        ],
                       },
                       default: None,
                      },
                      Variable {
                       identifier: "null",
                       position: (232, 45),
                      },
                     ],
                     position: (232, 42),
                    },
                    String {
                     parts: [
                      Raw {
                       content: "export PAPERLESS_ADMIN_USER=\"",
                       position: (233, 1),
                      },
                      Raw {
                       content: "$",
                       position: (233, 38),
                      },
                      Raw {
                       content: "{PAPERLESS_ADMIN_USER:-admin}\"\nexport PAPERLESS_ADMIN_PASSWORD=$(cat \"",
                       position: (233, 41),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (234, 50),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "dataDir",
                           position: (234, 54),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/superuser-password\")\nsuperuserState=\"$PAPERLESS_ADMIN_USER:$PAPERLESS_ADMIN_PASSWORD\"\nsuperuserStateFile=\"",
                       position: (234, 62),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (236, 31),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "dataDir",
                           position: (236, 35),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/superuser-state\"\n\nif [[ $(cat \"$superuserStateFile\" 2>/dev/null) != $superuserState ]]; then\n  ",
                       position: (236, 43),
                      },
                      Expression {
                       expression: PropertyAccess {
                        expression: Variable {
                         identifier: "cfg",
                         position: (239, 13),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "package",
                           position: (239, 17),
                          },
                         ],
                        },
                        default: None,
                       },
                      },
                      Raw {
                       content: "/bin/paperless-ng manage_superuser\n  echo \"$superuserState\" > \"$superuserStateFile\"\nfi\n",
                       position: (239, 25),
                      },
                     ],
                    },
                   ],
                  },
                 ],
                 position: (232, 7),
                },
               ),
              ],
              recursive: false,
              position: (211, 44),
             },
             FunctionApplication {
              function: Variable {
               identifier: "optionalAttrs",
               position: (243, 10),
              },
              arguments: [
               UnaryOperation {
                operator: Not,
                operand: Variable {
                 identifier: "hasCustomRedis",
                 position: (243, 26),
                },
                position: (243, 25),
               },
               Map {
                bindings: [
                 KeyValue(
                  AttributePath {
                   attributes: [
                    Raw {
                     content: "after",
                     position: (244, 7),
                    },
                   ],
                  },
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "redis-paperless-ng.service",
                       position: (244, 18),
                      },
                     ],
                    },
                   ],
                   position: (244, 15),
                  },
                 ),
                ],
                recursive: false,
                position: (243, 42),
               },
              ],
             },
            ],
            position: (243, 7),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (250, 5),
             },
             Raw {
              content: "services",
              position: (250, 13),
             },
             Raw {
              content: "paperless-ng-copy-password",
              position: (250, 22),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (250, 51),
            },
            arguments: [
             BinaryOperation {
              operator: NotEqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (250, 57),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "passwordFile",
                   position: (250, 61),
                  },
                 ],
                },
                default: None,
               },
               Variable {
                identifier: "null",
                position: (250, 77),
               },
              ],
              position: (250, 74),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "requiredBy",
                   position: (251, 7),
                  },
                 ],
                },
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "paperless-ng-server.service",
                     position: (251, 23),
                    },
                   ],
                  },
                 ],
                 position: (251, 20),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "before",
                   position: (252, 7),
                  },
                 ],
                },
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "paperless-ng-server.service",
                     position: (252, 19),
                    },
                   ],
                  },
                 ],
                 position: (252, 16),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "serviceConfig",
                   position: (253, 7),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "ExecStart",
                      position: (254, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "",
                      position: (255, 1),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (255, 13),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "coreutils",
                          position: (255, 18),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/install --mode 600 --owner ",
                      position: (255, 28),
                     },
                     Raw {
                      content: "'",
                      position: (255, 60),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (255, 63),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "user",
                          position: (255, 67),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "' --compare \\\n  ",
                      position: (255, 72),
                     },
                     Raw {
                      content: "'",
                      position: (256, 13),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (256, 16),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "passwordFile",
                          position: (256, 20),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "' ",
                      position: (256, 33),
                     },
                     Raw {
                      content: "'",
                      position: (256, 35),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (256, 38),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "dataDir",
                          position: (256, 42),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/superuser-password'\n",
                      position: (256, 50),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "Type",
                      position: (258, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "oneshot",
                      position: (258, 17),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "PrivateNetwork",
                      position: (260, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "false",
                    position: (260, 26),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (253, 23),
                },
               ),
              ],
              recursive: false,
              position: (250, 83),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (264, 5),
             },
             Raw {
              content: "services",
              position: (264, 13),
             },
             Raw {
              content: "paperless-ng-consumer",
              position: (264, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (265, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Paperless document consumer",
                 position: (265, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (266, 7),
                },
               ],
              },
              BinaryOperation {
               operator: Update,
               operands: [
                Variable {
                 identifier: "defaultServiceConfig",
                 position: (266, 23),
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "User",
                      position: (267, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (267, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "user",
                       position: (267, 20),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "ExecStart",
                      position: (268, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (268, 24),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "package",
                          position: (268, 28),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/paperless-ng document_consumer",
                      position: (268, 36),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "Restart",
                      position: (269, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "on-failure",
                      position: (269, 20),
                     },
                    ],
                   },
                  ),
                 ],
                 recursive: false,
                 position: (266, 47),
                },
               ],
               position: (266, 44),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "environment",
                 position: (271, 7),
                },
               ],
              },
              Variable {
               identifier: "env",
               position: (271, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "bindsTo",
                 position: (274, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "paperless-ng-server.service",
                   position: (274, 20),
                  },
                 ],
                },
               ],
               position: (274, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (275, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "paperless-ng-server.service",
                   position: (275, 18),
                  },
                 ],
                },
               ],
               position: (275, 15),
              },
             ),
            ],
            recursive: false,
            position: (264, 46),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (278, 5),
             },
             Raw {
              content: "services",
              position: (278, 13),
             },
             Raw {
              content: "paperless-ng-web",
              position: (278, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (279, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Paperless web server",
                 position: (279, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (280, 7),
                },
               ],
              },
              BinaryOperation {
               operator: Update,
               operands: [
                Variable {
                 identifier: "defaultServiceConfig",
                 position: (280, 23),
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "User",
                      position: (281, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (281, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "user",
                       position: (281, 20),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "ExecStart",
                      position: (282, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "",
                      position: (283, 1),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "pkgs",
                        position: (283, 13),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "python3Packages",
                          position: (283, 18),
                         },
                         Raw {
                          content: "gunicorn",
                          position: (283, 34),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/bin/gunicorn \\\n  -c ",
                      position: (283, 43),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (284, 18),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "package",
                          position: (284, 22),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/lib/paperless-ng/gunicorn.conf.py paperless.asgi:application\n",
                      position: (284, 30),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "Restart",
                      position: (286, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "on-failure",
                      position: (286, 20),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "AmbientCapabilities",
                      position: (288, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "CAP_NET_BIND_SERVICE",
                      position: (288, 32),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "CapabilityBoundingSet",
                      position: (289, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "CAP_NET_BIND_SERVICE",
                      position: (289, 34),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "SystemCallFilter",
                      position: (291, 9),
                     },
                    ],
                   },
                   BinaryOperation {
                    operator: Concatenation,
                    operands: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "defaultServiceConfig",
                       position: (291, 28),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "SystemCallFilter",
                         position: (291, 49),
                        },
                       ],
                      },
                      default: None,
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "@setuid",
                          position: (291, 72),
                         },
                        ],
                       },
                      ],
                      position: (291, 69),
                     },
                    ],
                    position: (291, 66),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "PrivateNetwork",
                      position: (293, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "false",
                    position: (293, 26),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (280, 47),
                },
               ],
               position: (280, 44),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "environment",
                 position: (295, 7),
                },
               ],
              },
              BinaryOperation {
               operator: Update,
               operands: [
                Variable {
                 identifier: "env",
                 position: (295, 21),
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "PATH",
                      position: (296, 9),
                     },
                    ],
                   },
                   FunctionApplication {
                    function: Variable {
                     identifier: "mkForce",
                     position: (296, 16),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (296, 24),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "package",
                         position: (296, 28),
                        },
                        Raw {
                         content: "path",
                         position: (296, 36),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "PYTHONPATH",
                      position: (297, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (297, 25),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "package",
                          position: (297, 29),
                         },
                         Raw {
                          content: "pythonPath",
                          position: (297, 37),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: ":",
                      position: (297, 48),
                     },
                     Expression {
                      expression: PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (297, 51),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "package",
                          position: (297, 55),
                         },
                        ],
                       },
                       default: None,
                      },
                     },
                     Raw {
                      content: "/lib/paperless-ng/src",
                      position: (297, 63),
                     },
                    ],
                   },
                  ),
                 ],
                 recursive: false,
                 position: (295, 28),
                },
               ],
               position: (295, 25),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "unitConfig",
                 position: (301, 7),
                },
                Raw {
                 content: "JoinsNamespaceOf",
                 position: (301, 18),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "paperless-ng-server.service",
                 position: (301, 38),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "bindsTo",
                 position: (304, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "paperless-ng-server.service",
                   position: (304, 20),
                  },
                 ],
                },
               ],
               position: (304, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (305, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "paperless-ng-server.service",
                   position: (305, 18),
                  },
                 ],
                },
               ],
               position: (305, 15),
              },
             ),
            ],
            recursive: false,
            position: (278, 41),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "users",
              position: (308, 5),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "optionalAttrs",
             position: (308, 13),
            },
            arguments: [
             BinaryOperation {
              operator: EqualTo,
              operands: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (308, 28),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "user",
                   position: (308, 32),
                  },
                 ],
                },
                default: None,
               },
               Variable {
                identifier: "defaultUser",
                position: (308, 40),
               },
              ],
              position: (308, 37),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "users",
                   position: (309, 7),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "defaultUser",
                    position: (309, 15),
                   },
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "group",
                      position: (310, 9),
                     },
                    ],
                   },
                   Variable {
                    identifier: "defaultUser",
                    position: (310, 17),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "uid",
                      position: (311, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (311, 15),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "ids",
                       position: (311, 22),
                      },
                      Raw {
                       content: "uids",
                       position: (311, 26),
                      },
                      Raw {
                       content: "paperless",
                       position: (311, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "home",
                      position: (312, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (312, 16),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "dataDir",
                       position: (312, 20),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                 ],
                 recursive: false,
                 position: (309, 30),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "groups",
                   position: (315, 7),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "defaultUser",
                    position: (315, 16),
                   },
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "gid",
                      position: (316, 9),
                     },
                    ],
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "config",
                     position: (316, 15),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "ids",
                       position: (316, 22),
                      },
                      Raw {
                       content: "gids",
                       position: (316, 26),
                      },
                      Raw {
                       content: "paperless",
                       position: (316, 31),
                      },
                     ],
                    },
                    default: None,
                   },
                  ),
                 ],
                 recursive: false,
                 position: (315, 31),
                },
               ),
              ],
              recursive: false,
              position: (308, 53),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (197, 28),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (80, 1),
   },
   position: (4, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}