---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (5, 6),
  },
  target: LetIn {
   bindings: [
    Inherit(
     Some(
      Variable {
       identifier: "pkgs",
       position: (9, 12),
      },
     ),
     [
      Raw {
       content: "das_watchdog",
       position: (9, 18),
      },
     ],
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (14, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (15, 5),
           },
           Raw {
            content: "das_watchdog",
            position: (15, 14),
           },
           Raw {
            content: "enable",
            position: (15, 27),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkEnableOption",
           position: (15, 36),
          },
          arguments: [
           String {
            parts: [
             Raw {
              content: "realtime watchdog",
              position: (15, 52),
             },
            ],
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (14, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (20, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (20, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "config",
          position: (20, 17),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (20, 24),
           },
           Raw {
            content: "das_watchdog",
            position: (20, 33),
           },
           Raw {
            content: "enable",
            position: (20, 46),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "environment",
              position: (21, 5),
             },
             Raw {
              content: "systemPackages",
              position: (21, 17),
             },
            ],
           },
           List {
            elements: [
             Variable {
              identifier: "das_watchdog",
              position: (21, 36),
             },
            ],
            position: (21, 34),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "systemd",
              position: (22, 5),
             },
             Raw {
              content: "services",
              position: (22, 13),
             },
             Raw {
              content: "das_watchdog",
              position: (22, 22),
             },
            ],
           },
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (23, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Watchdog to ensure a realtime process won't hang the machine",
                 position: (23, 22),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "after",
                 position: (24, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (24, 18),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "sound.target",
                   position: (24, 38),
                  },
                 ],
                },
               ],
               position: (24, 15),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "wantedBy",
                 position: (25, 7),
                },
               ],
              },
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "multi-user.target",
                   position: (25, 21),
                  },
                 ],
                },
               ],
               position: (25, 18),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "serviceConfig",
                 position: (26, 7),
                },
               ],
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "User",
                    position: (27, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "root",
                    position: (27, 17),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "Type",
                    position: (28, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "simple",
                    position: (28, 17),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "ExecStart",
                    position: (29, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: Variable {
                     identifier: "das_watchdog",
                     position: (29, 24),
                    },
                   },
                   Raw {
                    content: "/bin/das_watchdog",
                    position: (29, 37),
                   },
                  ],
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "RemainAfterExit",
                    position: (30, 9),
                   },
                  ],
                 },
                 Variable {
                  identifier: "true",
                  position: (30, 27),
                 },
                ),
               ],
               recursive: false,
               position: (26, 23),
              },
             ),
            ],
            recursive: false,
            position: (22, 37),
           },
          ),
         ],
         recursive: false,
         position: (20, 53),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (11, 4),
   },
   position: (7, 1),
  },
  position: (5, 1),
 },
 position: (3, 1),
}