---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "powerManagement",
         position: (7, 16),
        },
       ],
      },
      default: None,
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (15, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "powerManagement",
            position: (17, 5),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (19, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (19, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (20, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (20, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "bool",
                     position: (20, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (21, 9),
                   },
                  ],
                 },
                 to: Variable {
                  identifier: "true",
                  position: (21, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (22, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Whether to enable power management.  This includes support\nfor suspend-to-RAM and powersave features on laptops.\n",
                    position: (24, 1),
                   },
                  ],
                  position: (23, 11),
                 },
                },
               ],
               recursive: false,
               position: (19, 25),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "resumeCommands",
               position: (29, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (29, 24),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (30, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (30, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "lines",
                     position: (30, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (31, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (31, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (32, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Commands executed after the system resumes from suspend-to-RAM.",
                    position: (32, 24),
                   },
                  ],
                  position: (32, 23),
                 },
                },
               ],
               recursive: false,
               position: (29, 33),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "powerUpCommands",
               position: (35, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (35, 25),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (36, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (36, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "lines",
                     position: (36, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (37, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (37, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (38, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (38, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "\"",
                      position: (39, 1),
                     },
                     Raw {
                      content: "$",
                      position: (39, 12),
                     },
                     Raw {
                      content: "{pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda\"\n",
                      position: (39, 15),
                     },
                    ],
                    position: (38, 37),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (41, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Commands executed when the machine powers up.  That is,\nthey're executed both when the system first boots and when\nit resumes from suspend or hibernation.\n",
                    position: (43, 1),
                   },
                  ],
                  position: (42, 11),
                 },
                },
               ],
               recursive: false,
               position: (35, 34),
              },
             ],
            },
           },
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "powerDownCommands",
               position: (49, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (49, 27),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (50, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (50, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "lines",
                     position: (50, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (51, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [],
                  position: (51, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (52, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (52, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "\"",
                      position: (53, 1),
                     },
                     Raw {
                      content: "$",
                      position: (53, 12),
                     },
                     Raw {
                      content: "{pkgs.hdparm}/sbin/hdparm -B 255 /dev/sda\"\n",
                      position: (53, 15),
                     },
                    ],
                    position: (52, 37),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (55, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "Commands executed when the machine powers down.  That is,\nthey're executed both when the system shuts down and when\nit goes to suspend or hibernation.\n",
                    position: (57, 1),
                   },
                  ],
                  position: (56, 11),
                 },
                },
               ],
               recursive: false,
               position: (49, 36),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (17, 23),
         },
        },
       ],
       recursive: false,
       position: (15, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (70, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (70, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (70, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (70, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (72, 5),
             },
             Raw {
              content: "targets",
              position: (72, 13),
             },
             Raw {
              content: "post-resume",
              position: (72, 21),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (73, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Post-Resume Actions",
                 position: (73, 22),
                },
               ],
               position: (73, 21),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "requires",
                 position: (74, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "post-resume.service",
                   position: (74, 21),
                  },
                 ],
                 position: (74, 20),
                },
               ],
               position: (74, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (75, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "post-resume.service",
                   position: (75, 18),
                  },
                 ],
                 position: (75, 17),
                },
               ],
               position: (75, 15),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (76, 7),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "sleep.target",
                   position: (76, 21),
                  },
                 ],
                 position: (76, 20),
                },
               ],
               position: (76, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "unitConfig",
                 position: (77, 7),
                },
                Raw {
                 content: "StopWhenUnneeded",
                 position: (77, 18),
                },
               ],
              },
              to: Variable {
               identifier: "true",
               position: (77, 37),
              },
             },
            ],
            recursive: false,
            position: (72, 35),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (81, 5),
             },
             Raw {
              content: "services",
              position: (81, 13),
             },
             Raw {
              content: "pre-sleep",
              position: (81, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (82, 9),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Pre-Sleep Actions",
                 position: (82, 24),
                },
               ],
               position: (82, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "wantedBy",
                 position: (83, 9),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "sleep.target",
                   position: (83, 23),
                  },
                 ],
                 position: (83, 22),
                },
               ],
               position: (83, 20),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "before",
                 position: (84, 9),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "sleep.target",
                   position: (84, 21),
                  },
                 ],
                 position: (84, 20),
                },
               ],
               position: (84, 18),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "script",
                 position: (85, 9),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "",
                 position: (87, 1),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (87, 15),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "powerDownCommands",
                     position: (87, 19),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "\n",
                 position: (87, 37),
                },
               ],
               position: (86, 11),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (89, 9),
                },
                Raw {
                 content: "Type",
                 position: (89, 23),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "oneshot",
                 position: (89, 31),
                },
               ],
               position: (89, 30),
              },
             },
            ],
            recursive: false,
            position: (82, 7),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "systemd",
              position: (92, 5),
             },
             Raw {
              content: "services",
              position: (92, 13),
             },
             Raw {
              content: "post-resume",
              position: (92, 22),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (93, 9),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Post-Resume Actions",
                 position: (93, 24),
                },
               ],
               position: (93, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "after",
                 position: (94, 9),
                },
               ],
              },
              to: List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "suspend.target",
                   position: (94, 20),
                  },
                 ],
                 position: (94, 19),
                },
                String {
                 parts: [
                  Raw {
                   content: "hibernate.target",
                   position: (94, 37),
                  },
                 ],
                 position: (94, 36),
                },
                String {
                 parts: [
                  Raw {
                   content: "hybrid-sleep.target",
                   position: (94, 56),
                  },
                 ],
                 position: (94, 55),
                },
               ],
               position: (94, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "script",
                 position: (95, 9),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "/run/current-system/systemd/bin/systemctl try-restart post-resume.target\n",
                 position: (97, 1),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (98, 15),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "resumeCommands",
                     position: (98, 19),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "\n",
                 position: (98, 34),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (99, 15),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "powerUpCommands",
                     position: (99, 19),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "\n",
                 position: (99, 35),
                },
               ],
               position: (96, 11),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "serviceConfig",
                 position: (101, 9),
                },
                Raw {
                 content: "Type",
                 position: (101, 23),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "oneshot",
                 position: (101, 31),
                },
               ],
               position: (101, 30),
              },
             },
            ],
            recursive: false,
            position: (93, 7),
           },
          },
         ],
         recursive: false,
         position: (70, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (11, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}