---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "services",
         position: (6, 16),
        },
        Raw {
         content: "dockerRegistry",
         position: (6, 25),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "blobCache",
        position: (8, 3),
       },
      ],
     },
     to: IfThenElse {
      predicate: PropertyAccess {
       expression: Variable {
        identifier: "cfg",
        position: (8, 18),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "enableRedisCache",
          position: (8, 22),
         },
        ],
       },
       default: None,
      },
      then: String {
       parts: [
        Raw {
         content: "redis",
         position: (9, 11),
        },
       ],
       position: (9, 10),
      },
      else_: String {
       parts: [
        Raw {
         content: "inmemory",
         position: (10, 11),
        },
       ],
       position: (10, 10),
      },
      position: (8, 15),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "registryConfig",
        position: (12, 3),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "version",
           position: (13, 5),
          },
         ],
        },
        to: String {
         parts: [
          Raw {
           content: "0.1",
           position: (13, 17),
          },
         ],
         position: (13, 16),
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "log",
           position: (14, 5),
          },
          Raw {
           content: "fields",
           position: (14, 9),
          },
          Raw {
           content: "service",
           position: (14, 16),
          },
         ],
        },
        to: String {
         parts: [
          Raw {
           content: "registry",
           position: (14, 27),
          },
         ],
         position: (14, 26),
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "storage",
           position: (15, 5),
          },
         ],
        },
        to: BinaryOperation {
         operator: Update,
         operands: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "cache",
                position: (16, 7),
               },
               Raw {
                content: "blobdescriptor",
                position: (16, 13),
               },
              ],
             },
             to: Variable {
              identifier: "blobCache",
              position: (16, 30),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "delete",
                position: (17, 7),
               },
               Raw {
                content: "enabled",
                position: (17, 14),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (17, 24),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "enableDelete",
                 position: (17, 28),
                },
               ],
              },
              default: None,
             },
            },
           ],
           recursive: false,
           position: (15, 15),
          },
          Parentheses {
           expression: IfThenElse {
            predicate: BinaryOperation {
             operator: NotEqualTo,
             operands: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (18, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "storagePath",
                  position: (18, 18),
                 },
                ],
               },
               default: None,
              },
              Variable {
               identifier: "null",
               position: (18, 33),
              },
             ],
             position: (18, 30),
            },
            then: Map {
             bindings: [
              Binding {
               from: AttributePath {
                parts: [
                 Raw {
                  content: "filesystem",
                  position: (19, 18),
                 },
                 Raw {
                  content: "rootdirectory",
                  position: (19, 29),
                 },
                ],
               },
               to: PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (19, 45),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "storagePath",
                   position: (19, 49),
                  },
                 ],
                },
                default: None,
               },
              },
             ],
             recursive: false,
             position: (19, 16),
            },
            else_: Map {
             bindings: [],
             recursive: false,
             position: (20, 16),
            },
            position: (18, 11),
           },
           position: (18, 10),
          },
         ],
         position: (18, 7),
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "http",
           position: (21, 5),
          },
         ],
        },
        to: Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "addr",
              position: (22, 7),
             },
            ],
           },
           to: String {
            parts: [
             Interpolation {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (22, 17),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "listenAddress",
                  position: (22, 21),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: ":",
              position: (22, 35),
             },
             Interpolation {
              expression: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "builtins",
                 position: (22, 38),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "toString",
                   position: (22, 47),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (22, 56),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "port",
                    position: (22, 60),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            position: (22, 14),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "headers",
              position: (23, 7),
             },
             Raw {
              content: "X-Content-Type-Options",
              position: (23, 15),
             },
            ],
           },
           to: List {
            elements: [
             String {
              parts: [
               Raw {
                content: "nosniff",
                position: (23, 42),
               },
              ],
              position: (23, 41),
             },
            ],
            position: (23, 40),
           },
          },
         ],
         recursive: false,
         position: (21, 12),
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "health",
           position: (25, 5),
          },
          Raw {
           content: "storagedriver",
           position: (25, 12),
          },
         ],
        },
        to: Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "enabled",
              position: (26, 7),
             },
            ],
           },
           to: Variable {
            identifier: "true",
            position: (26, 17),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "interval",
              position: (27, 7),
             },
            ],
           },
           to: String {
            parts: [
             Raw {
              content: "10s",
              position: (27, 19),
             },
            ],
            position: (27, 18),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "threshold",
              position: (28, 7),
             },
            ],
           },
           to: Int {
            value: 3,
            position: (28, 19),
           },
          },
         ],
         recursive: false,
         position: (25, 28),
        },
       },
      ],
      recursive: false,
      position: (12, 20),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "registryConfig",
        position: (32, 3),
       },
       Raw {
        content: "redis",
        position: (32, 18),
       },
      ],
     },
     to: FunctionApplication {
      function: Variable {
       identifier: "mkIf",
       position: (32, 26),
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (32, 31),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "enableRedisCache",
           position: (32, 35),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "addr",
             position: (33, 5),
            },
           ],
          },
          to: String {
           parts: [
            Interpolation {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (33, 15),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "redisUrl",
                 position: (33, 19),
                },
               ],
              },
              default: None,
             },
            },
           ],
           position: (33, 12),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "password",
             position: (34, 5),
            },
           ],
          },
          to: String {
           parts: [
            Interpolation {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (34, 19),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "redisPassword",
                 position: (34, 23),
                },
               ],
              },
              default: None,
             },
            },
           ],
           position: (34, 16),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "db",
             position: (35, 5),
            },
           ],
          },
          to: Int {
           value: 0,
           position: (35, 10),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "dialtimeout",
             position: (36, 5),
            },
           ],
          },
          to: String {
           parts: [
            Raw {
             content: "10ms",
             position: (36, 20),
            },
           ],
           position: (36, 19),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "readtimeout",
             position: (37, 5),
            },
           ],
          },
          to: String {
           parts: [
            Raw {
             content: "10ms",
             position: (37, 20),
            },
           ],
           position: (37, 19),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "writetimeout",
             position: (38, 5),
            },
           ],
          },
          to: String {
           parts: [
            Raw {
             content: "10ms",
             position: (38, 21),
            },
           ],
           position: (38, 20),
          },
         },
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "pool",
             position: (39, 5),
            },
           ],
          },
          to: Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "maxidle",
                position: (40, 7),
               },
              ],
             },
             to: Int {
              value: 16,
              position: (40, 17),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "maxactive",
                position: (41, 7),
               },
              ],
             },
             to: Int {
              value: 64,
              position: (41, 19),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "idletimeout",
                position: (42, 7),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "300s",
                position: (42, 22),
               },
              ],
              position: (42, 21),
             },
            },
           ],
           recursive: false,
           position: (39, 12),
          },
         },
        ],
        recursive: false,
        position: (32, 52),
       },
      ],
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "configFile",
        position: (46, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (46, 16),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "writeText",
          position: (46, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "docker-registry-config.yml",
          position: (46, 32),
         },
        ],
        position: (46, 31),
       },
       Parentheses {
        expression: FunctionApplication {
         function: PropertyAccess {
          expression: Variable {
           identifier: "builtins",
           position: (46, 61),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "toJSON",
             position: (46, 70),
            },
           ],
          },
          default: None,
         },
         arguments: [
          Parentheses {
           expression: FunctionApplication {
            function: Variable {
             identifier: "recursiveUpdate",
             position: (46, 78),
            },
            arguments: [
             Variable {
              identifier: "registryConfig",
              position: (46, 94),
             },
             PropertyAccess {
              expression: Variable {
               identifier: "cfg",
               position: (46, 109),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "extraConfig",
                 position: (46, 113),
                },
               ],
              },
              default: None,
             },
            ],
           },
           position: (46, 77),
          },
         ],
        },
        position: (46, 60),
       },
      ],
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (49, 3),
        },
        Raw {
         content: "services",
         position: (49, 11),
        },
        Raw {
         content: "dockerRegistry",
         position: (49, 20),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (50, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (50, 14),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "Docker Registry",
              position: (50, 30),
             },
            ],
            position: (50, 29),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "listenAddress",
            position: (52, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (52, 21),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (53, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Docker registry host or ip to bind to.",
                 position: (53, 22),
                },
               ],
               position: (53, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (54, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "127.0.0.1",
                 position: (54, 18),
                },
               ],
               position: (54, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (55, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (55, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (55, 20),
                 },
                ],
               },
               default: None,
              },
             },
            ],
            recursive: false,
            position: (52, 30),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "port",
            position: (58, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (58, 12),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (59, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Docker registry port to bind to.",
                 position: (59, 22),
                },
               ],
               position: (59, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (60, 7),
                },
               ],
              },
              to: Int {
               value: 5000,
               position: (60, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (61, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (61, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "port",
                  position: (61, 20),
                 },
                ],
               },
               default: None,
              },
             },
            ],
            recursive: false,
            position: (58, 21),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "storagePath",
            position: (64, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (64, 19),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (65, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "types",
                 position: (65, 14),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "nullOr",
                   position: (65, 20),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (65, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "path",
                    position: (65, 33),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (66, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/var/lib/docker-registry",
                 position: (66, 18),
                },
               ],
               position: (66, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (67, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Docker registry storage path for the filesystem storage backend. Set to\nnull to configure another backend via extraConfig.\n",
                 position: (68, 1),
                },
               ],
               position: (67, 21),
              },
             },
            ],
            recursive: false,
            position: (64, 28),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "enableDelete",
            position: (73, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (73, 20),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (74, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (74, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "bool",
                  position: (74, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (75, 7),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (75, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (76, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Enable delete for manifests and blobs.",
                 position: (76, 22),
                },
               ],
               position: (76, 21),
              },
             },
            ],
            recursive: false,
            position: (73, 29),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "enableRedisCache",
            position: (79, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (79, 24),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "redis as blob cache",
              position: (79, 40),
             },
            ],
            position: (79, 39),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "redisUrl",
            position: (81, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (81, 16),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (82, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (82, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (82, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (83, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "localhost:6379",
                 position: (83, 18),
                },
               ],
               position: (83, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (84, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Set redis host and port.",
                 position: (84, 22),
                },
               ],
               position: (84, 21),
              },
             },
            ],
            recursive: false,
            position: (81, 25),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "redisPassword",
            position: (87, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (87, 21),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (88, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (88, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (88, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (89, 7),
                },
               ],
              },
              to: String {
               parts: [],
               position: (89, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (90, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Set redis password.",
                 position: (90, 22),
                },
               ],
               position: (90, 21),
              },
             },
            ],
            recursive: false,
            position: (87, 30),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "extraConfig",
            position: (93, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (93, 19),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (94, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Docker extra registry configuration via environment variables.\n",
                 position: (95, 1),
                },
               ],
               position: (94, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (97, 7),
                },
               ],
              },
              to: Map {
               bindings: [],
               recursive: false,
               position: (97, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (98, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (98, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "attrs",
                  position: (98, 20),
                 },
                ],
               },
               default: None,
              },
             },
            ],
            recursive: false,
            position: (93, 28),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "enableGarbageCollect",
            position: (101, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (101, 28),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "garbage collect",
              position: (101, 44),
             },
            ],
            position: (101, 43),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "garbageCollectDates",
            position: (103, 5),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (103, 27),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (104, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "daily",
                 position: (104, 18),
                },
               ],
               position: (104, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (105, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (105, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "str",
                  position: (105, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (106, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Specification (in the format described by\n<citerefentry><refentrytitle>systemd.time</refentrytitle>\n<manvolnum>7</manvolnum></citerefentry>) of the time at\nwhich the garbage collect will occur.\n",
                 position: (107, 1),
                },
               ],
               position: (106, 21),
              },
             },
            ],
            recursive: false,
            position: (103, 36),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (49, 37),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (115, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (115, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (115, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (115, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (116, 5),
             },
             Raw {
              content: "services",
              position: (116, 13),
             },
             Raw {
              content: "docker-registry",
              position: (116, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (117, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Docker Container Registry",
                 position: (117, 22),
                },
               ],
               position: (117, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (118, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (118, 21),
                  },
                 ],
                 position: (118, 20),
                },
               ],
               position: (118, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (119, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "network.target",
                   position: (119, 18),
                  },
                 ],
                 position: (119, 17),
                },
               ],
               position: (119, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "script",
                 position: (120, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "",
                 position: (121, 1),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (121, 11),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "docker-distribution",
                     position: (121, 16),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/registry serve ",
                 position: (121, 36),
                },
                Interpolation {
                 expression: Variable {
                  identifier: "configFile",
                  position: (121, 58),
                 },
                },
                Raw {
                 content: "\n",
                 position: (121, 69),
                },
               ],
               position: (120, 16),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (124, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "User",
                    position: (125, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "docker-registry",
                    position: (125, 17),
                   },
                  ],
                  position: (125, 16),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "WorkingDirectory",
                    position: (126, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (126, 28),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "storagePath",
                     position: (126, 32),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "AmbientCapabilities",
                    position: (127, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "mkIf",
                   position: (127, 31),
                  },
                  arguments: [
                   Parentheses {
                    expression: BinaryOperation {
                     operator: LessThan,
                     operands: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "cfg",
                        position: (127, 37),
                       },
                       attribute_path: AttributePath {
                        parts: [
                         Raw {
                          content: "port",
                          position: (127, 41),
                         },
                        ],
                       },
                       default: None,
                      },
                      Int {
                       value: 1024,
                       position: (127, 48),
                      },
                     ],
                     position: (127, 46),
                    },
                    position: (127, 36),
                   },
                   String {
                    parts: [
                     Raw {
                      content: "cap_net_bind_service",
                      position: (127, 55),
                     },
                    ],
                    position: (127, 54),
                   },
                  ],
                 },
                },
               ],
               recursive: false,
               position: (124, 23),
              },
             },
            ],
            recursive: false,
            position: (116, 40),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (131, 5),
             },
             Raw {
              content: "services",
              position: (131, 13),
             },
             Raw {
              content: "docker-registry-garbage-collect",
              position: (131, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (132, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Run Garbage Collection for docker registry",
                 position: (132, 22),
                },
               ],
               position: (132, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "restartIfChanged",
                 position: (134, 7),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (134, 26),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "unitConfig",
                 position: (135, 7),
                },
                Raw {
                 content: "X-StopOnRemoval",
                 position: (135, 18),
                },
               ],
              },
              to: Variable {
               identifier: "false",
               position: (135, 36),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (137, 7),
                },
                Raw {
                 content: "Type",
                 position: (137, 21),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "oneshot",
                 position: (137, 29),
                },
               ],
               position: (137, 28),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "script",
                 position: (139, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "",
                 position: (140, 1),
                },
                Interpolation {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (140, 11),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "docker-distribution",
                     position: (140, 16),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/registry garbage-collect ",
                 position: (140, 36),
                },
                Interpolation {
                 expression: Variable {
                  identifier: "configFile",
                  position: (140, 68),
                 },
                },
                Raw {
                 content: "\n/run/current-system/systemd/bin/systemctl restart docker-registry.service\n",
                 position: (140, 79),
                },
               ],
               position: (139, 16),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "startAt",
                 position: (144, 7),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (144, 17),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (144, 26),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "enableGarbageCollect",
                    position: (144, 30),
                   },
                  ],
                 },
                 default: None,
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (144, 51),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "garbageCollectDates",
                    position: (144, 55),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (131, 56),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (147, 5),
             },
             Raw {
              content: "users",
              position: (147, 11),
             },
             Raw {
              content: "docker-registry",
              position: (147, 17),
             },
            ],
           },
           to: BinaryOperation {
            operator: Update,
            operands: [
             Parentheses {
              expression: IfThenElse {
               predicate: BinaryOperation {
                operator: NotEqualTo,
                operands: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (148, 11),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "storagePath",
                     position: (148, 15),
                    },
                   ],
                  },
                  default: None,
                 },
                 Variable {
                  identifier: "null",
                  position: (148, 30),
                 },
                ],
                position: (148, 27),
               },
               then: Map {
                bindings: [
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "createHome",
                     position: (150, 9),
                    },
                   ],
                  },
                  to: Variable {
                   identifier: "true",
                   position: (150, 22),
                  },
                 },
                 Binding {
                  from: AttributePath {
                   parts: [
                    Raw {
                     content: "home",
                     position: (151, 9),
                    },
                   ],
                  },
                  to: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (151, 16),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "storagePath",
                      position: (151, 20),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                ],
                recursive: false,
                position: (149, 12),
               },
               else_: Map {
                bindings: [],
                recursive: false,
                position: (153, 12),
               },
               position: (148, 8),
              },
              position: (148, 7),
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "group",
                   position: (154, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "docker-registry",
                   position: (154, 18),
                  },
                 ],
                 position: (154, 17),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "isSystemUser",
                   position: (155, 9),
                  },
                 ],
                },
                to: Variable {
                 identifier: "true",
                 position: (155, 24),
                },
               },
              ],
              recursive: false,
              position: (153, 19),
             },
            ],
            position: (153, 16),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "users",
              position: (157, 5),
             },
             Raw {
              content: "groups",
              position: (157, 11),
             },
             Raw {
              content: "docker-registry",
              position: (157, 18),
             },
            ],
           },
           to: Map {
            bindings: [],
            recursive: false,
            position: (157, 36),
           },
          },
         ],
         recursive: false,
         position: (115, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (48, 4),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}