---
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: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "nvidia_x11",
        position: (8, 3),
       },
      ],
     },
     LetIn {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "drivers",
           position: (9, 5),
          },
         ],
        },
        PropertyAccess {
         expression: Variable {
          identifier: "config",
          position: (9, 15),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "services",
            position: (9, 22),
           },
           Raw {
            content: "xserver",
            position: (9, 31),
           },
           Raw {
            content: "videoDrivers",
            position: (9, 39),
           },
          ],
         },
         default: None,
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "isDeprecated",
           position: (10, 5),
          },
         ],
        },
        Function {
         argument: Some(
          "str",
         ),
         arguments: FunctionArguments {
          arguments: [],
          ellipsis: false,
         },
         definition: BinaryOperation {
          operator: LogicalAnd,
          operands: [
           FunctionApplication {
            function: Variable {
             identifier: "hasPrefix",
             position: (10, 26),
            },
            arguments: [
             String {
              parts: [
               Raw {
                content: "nvidia",
               },
              ],
              position: (10, 36),
             },
             Variable {
              identifier: "str",
              position: (10, 45),
             },
            ],
           },
           BinaryOperation {
            operator: NotEqualTo,
            operands: [
             Variable {
              identifier: "str",
              position: (10, 54),
             },
             String {
              parts: [
               Raw {
                content: "nvidia",
               },
              ],
              position: (10, 61),
             },
            ],
            position: (10, 58),
           },
          ],
          position: (10, 50),
         },
         position: (10, 20),
        },
       ),
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "hasDeprecated",
           position: (11, 5),
          },
         ],
        },
        Function {
         argument: Some(
          "drivers",
         ),
         arguments: FunctionArguments {
          arguments: [],
          ellipsis: false,
         },
         definition: FunctionApplication {
          function: Variable {
           identifier: "any",
           position: (11, 30),
          },
          arguments: [
           Variable {
            identifier: "isDeprecated",
            position: (11, 34),
           },
           Variable {
            identifier: "drivers",
            position: (11, 47),
           },
          ],
         },
         position: (11, 21),
        },
       ),
      ],
      target: IfThenElse {
       predicate: FunctionApplication {
        function: Variable {
         identifier: "hasDeprecated",
         position: (12, 10),
        },
        arguments: [
         Variable {
          identifier: "drivers",
          position: (12, 24),
         },
        ],
       },
       then: FunctionApplication {
        function: Variable {
         identifier: "throw",
         position: (13, 5),
        },
        arguments: [
         String {
          parts: [
           Raw {
            content: "Selecting an nvidia driver has been modified for NixOS 19.03. The version is now set using `hardware.nvidia.package`.\n",
           },
          ],
          position: (13, 11),
         },
        ],
       },
       else_: IfThenElse {
        predicate: FunctionApplication {
         function: Variable {
          identifier: "elem",
          position: (16, 12),
         },
         arguments: [
          String {
           parts: [
            Raw {
             content: "nvidia",
            },
           ],
           position: (16, 17),
          },
          Variable {
           identifier: "drivers",
           position: (16, 26),
          },
         ],
        },
        then: PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (16, 40),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "package",
            position: (16, 44),
           },
          ],
         },
         default: None,
        },
        else_: Variable {
         identifier: "null",
         position: (16, 57),
        },
        position: (16, 8),
       },
       position: (12, 6),
      },
      position: (8, 16),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "enabled",
        position: (18, 3),
       },
      ],
     },
     BinaryOperation {
      operator: NotEqualTo,
      operands: [
       Variable {
        identifier: "nvidia_x11",
        position: (18, 13),
       },
       Variable {
        identifier: "null",
        position: (18, 27),
       },
      ],
      position: (18, 24),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "cfg",
        position: (19, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (19, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "hardware",
         position: (19, 16),
        },
        Raw {
         content: "nvidia",
         position: (19, 25),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "pCfg",
        position: (21, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "cfg",
       position: (21, 10),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "prime",
         position: (21, 14),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "syncCfg",
        position: (22, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "pCfg",
       position: (22, 13),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "sync",
         position: (22, 18),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "offloadCfg",
        position: (23, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "pCfg",
       position: (23, 16),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "offload",
         position: (23, 21),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "primeEnabled",
        position: (24, 3),
       },
      ],
     },
     BinaryOperation {
      operator: LogicalOr,
      operands: [
       PropertyAccess {
        expression: Variable {
         identifier: "syncCfg",
         position: (24, 18),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "enable",
           position: (24, 26),
          },
         ],
        },
        default: None,
       },
       PropertyAccess {
        expression: Variable {
         identifier: "offloadCfg",
         position: (24, 36),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "enable",
           position: (24, 47),
          },
         ],
        },
        default: None,
       },
      ],
      position: (24, 33),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "nvidiaPersistencedEnabled",
        position: (25, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "cfg",
       position: (25, 32),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "nvidiaPersistenced",
         position: (25, 36),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "nvidiaSettings",
        position: (26, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "cfg",
       position: (26, 20),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "nvidiaSettings",
         position: (26, 24),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "busIDType",
        position: (27, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "types",
        position: (27, 15),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "strMatching",
          position: (27, 21),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "([[:print:]]+:[0-9]{1,3}:[0-9]{1,2}:[0-9])?",
         },
        ],
        position: (27, 33),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (31, 3),
        },
       ],
      },
      List {
       elements: [
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (33, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (33, 32),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (33, 43),
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
              },
             ],
             position: (33, 52),
            },
            String {
             parts: [
              Raw {
               content: "enable",
              },
             ],
             position: (33, 68),
            },
           ],
           position: (33, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (33, 81),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (33, 92),
            },
            String {
             parts: [
              Raw {
               content: "prime",
              },
             ],
             position: (33, 101),
            },
            String {
             parts: [
              Raw {
               content: "sync",
              },
             ],
             position: (33, 109),
            },
            String {
             parts: [
              Raw {
               content: "enable",
              },
             ],
             position: (33, 116),
            },
           ],
           position: (33, 79),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (34, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (34, 32),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (34, 43),
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
              },
             ],
             position: (34, 52),
            },
            String {
             parts: [
              Raw {
               content: "allowExternalGpu",
              },
             ],
             position: (34, 68),
            },
           ],
           position: (34, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (34, 91),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (34, 102),
            },
            String {
             parts: [
              Raw {
               content: "prime",
              },
             ],
             position: (34, 111),
            },
            String {
             parts: [
              Raw {
               content: "sync",
              },
             ],
             position: (34, 119),
            },
            String {
             parts: [
              Raw {
               content: "allowExternalGpu",
              },
             ],
             position: (34, 126),
            },
           ],
           position: (34, 89),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (35, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (35, 32),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (35, 43),
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
              },
             ],
             position: (35, 52),
            },
            String {
             parts: [
              Raw {
               content: "nvidiaBusId",
              },
             ],
             position: (35, 68),
            },
           ],
           position: (35, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (35, 86),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (35, 97),
            },
            String {
             parts: [
              Raw {
               content: "prime",
              },
             ],
             position: (35, 106),
            },
            String {
             parts: [
              Raw {
               content: "nvidiaBusId",
              },
             ],
             position: (35, 114),
            },
           ],
           position: (35, 84),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (36, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (36, 32),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (36, 43),
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
              },
             ],
             position: (36, 52),
            },
            String {
             parts: [
              Raw {
               content: "intelBusId",
              },
             ],
             position: (36, 68),
            },
           ],
           position: (36, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
              },
             ],
             position: (36, 85),
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
              },
             ],
             position: (36, 96),
            },
            String {
             parts: [
              Raw {
               content: "prime",
              },
             ],
             position: (36, 105),
            },
            String {
             parts: [
              Raw {
               content: "intelBusId",
              },
             ],
             position: (36, 113),
            },
           ],
           position: (36, 83),
          },
         ],
        },
       ],
       position: (32, 5),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (39, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (40, 5),
           },
           Raw {
            content: "nvidia",
            position: (40, 14),
           },
           Raw {
            content: "powerManagement",
            position: (40, 21),
           },
           Raw {
            content: "enable",
            position: (40, 37),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (40, 46),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (41, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (41, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (41, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (42, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (42, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (43, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Experimental power management through systemd. For more information, see\nthe NVIDIA docs, on Chapter 21. Configuring Power Management Support.\n",
                },
               ],
               position: (43, 21),
              },
             ),
            ],
            recursive: false,
            position: (40, 55),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (49, 5),
           },
           Raw {
            content: "nvidia",
            position: (49, 14),
           },
           Raw {
            content: "powerManagement",
            position: (49, 21),
           },
           Raw {
            content: "finegrained",
            position: (49, 37),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (49, 51),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (50, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (50, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (50, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (51, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (51, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (52, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Experimental power management of PRIME offload. For more information, see\nthe NVIDIA docs, chapter 22. PCI-Express runtime power management.\n",
                },
               ],
               position: (52, 21),
              },
             ),
            ],
            recursive: false,
            position: (49, 60),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (58, 5),
           },
           Raw {
            content: "nvidia",
            position: (58, 14),
           },
           Raw {
            content: "modesetting",
            position: (58, 21),
           },
           Raw {
            content: "enable",
            position: (58, 33),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (58, 42),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (59, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (59, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (59, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (60, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (60, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (61, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Enable kernel modesetting when using the NVIDIA proprietary driver.\n\nEnabling this fixes screen tearing when using Optimus via PRIME (see\n<option>hardware.nvidia.prime.sync.enable</option>. This is not enabled\nby default because it is not officially supported by NVIDIA and would not\nwork with SLI.\n",
                },
               ],
               position: (61, 21),
              },
             ),
            ],
            recursive: false,
            position: (58, 51),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (71, 5),
           },
           Raw {
            content: "nvidia",
            position: (71, 14),
           },
           Raw {
            content: "prime",
            position: (71, 21),
           },
           Raw {
            content: "nvidiaBusId",
            position: (71, 27),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (71, 41),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (72, 7),
                },
               ],
              },
              Variable {
               identifier: "busIDType",
               position: (72, 14),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (73, 7),
                },
               ],
              },
              String {
               parts: [],
               position: (73, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (74, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "PCI:1:0:0",
                },
               ],
               position: (74, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (75, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Bus ID of the NVIDIA GPU. You can find it using lspci; for example if lspci\nshows the NVIDIA GPU at \"01:00.0\", set this option to \"PCI:1:0:0\".\n",
                },
               ],
               position: (75, 21),
              },
             ),
            ],
            recursive: false,
            position: (71, 50),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (81, 5),
           },
           Raw {
            content: "nvidia",
            position: (81, 14),
           },
           Raw {
            content: "prime",
            position: (81, 21),
           },
           Raw {
            content: "intelBusId",
            position: (81, 27),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (81, 40),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (82, 7),
                },
               ],
              },
              Variable {
               identifier: "busIDType",
               position: (82, 14),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (83, 7),
                },
               ],
              },
              String {
               parts: [],
               position: (83, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (84, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "PCI:0:2:0",
                },
               ],
               position: (84, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (85, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Bus ID of the Intel GPU. You can find it using lspci; for example if lspci\nshows the Intel GPU at \"00:02.0\", set this option to \"PCI:0:2:0\".\n",
                },
               ],
               position: (85, 21),
              },
             ),
            ],
            recursive: false,
            position: (81, 49),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (91, 5),
           },
           Raw {
            content: "nvidia",
            position: (91, 14),
           },
           Raw {
            content: "prime",
            position: (91, 21),
           },
           Raw {
            content: "amdgpuBusId",
            position: (91, 27),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (91, 41),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (92, 7),
                },
               ],
              },
              Variable {
               identifier: "busIDType",
               position: (92, 14),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (93, 7),
                },
               ],
              },
              String {
               parts: [],
               position: (93, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (94, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "PCI:4:0:0",
                },
               ],
               position: (94, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (95, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Bus ID of the AMD APU. You can find it using lspci; for example if lspci\nshows the AMD APU at \"04:00.0\", set this option to \"PCI:4:0:0\".\n",
                },
               ],
               position: (95, 21),
              },
             ),
            ],
            recursive: false,
            position: (91, 50),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (101, 5),
           },
           Raw {
            content: "nvidia",
            position: (101, 14),
           },
           Raw {
            content: "prime",
            position: (101, 21),
           },
           Raw {
            content: "sync",
            position: (101, 27),
           },
           Raw {
            content: "enable",
            position: (101, 32),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (101, 41),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (102, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (102, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (102, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (103, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (103, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (104, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Enable NVIDIA Optimus support using the NVIDIA proprietary driver via PRIME.\nIf enabled, the NVIDIA GPU will be always on and used for all rendering,\nwhile enabling output to displays attached only to the integrated Intel GPU\nwithout a multiplexer.\n\nNote that this option only has any effect if the \"nvidia\" driver is specified\nin <option>services.xserver.videoDrivers</option>, and it should preferably\nbe the only driver there.\n\nIf this is enabled, then the bus IDs of the NVIDIA and Intel GPUs have to be\nspecified (<option>hardware.nvidia.prime.nvidiaBusId</option> and\n<option>hardware.nvidia.prime.intelBusId</option>).\n\nIf you enable this, you may want to also enable kernel modesetting for the\nNVIDIA driver (<option>hardware.nvidia.modesetting.enable</option>) in order\nto prevent tearing.\n\nNote that this configuration will only be successful when a display manager\nfor which the <option>services.xserver.displayManager.setupCommands</option>\noption is supported is used.\n",
                },
               ],
               position: (104, 21),
              },
             ),
            ],
            recursive: false,
            position: (101, 50),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (128, 5),
           },
           Raw {
            content: "nvidia",
            position: (128, 14),
           },
           Raw {
            content: "prime",
            position: (128, 21),
           },
           Raw {
            content: "sync",
            position: (128, 27),
           },
           Raw {
            content: "allowExternalGpu",
            position: (128, 32),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (128, 51),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (129, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (129, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (129, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (130, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (130, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (131, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Configure X to allow external NVIDIA GPUs when using optimus.\n",
                },
               ],
               position: (131, 21),
              },
             ),
            ],
            recursive: false,
            position: (128, 60),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (136, 5),
           },
           Raw {
            content: "nvidia",
            position: (136, 14),
           },
           Raw {
            content: "prime",
            position: (136, 21),
           },
           Raw {
            content: "offload",
            position: (136, 27),
           },
           Raw {
            content: "enable",
            position: (136, 35),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (136, 44),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (137, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (137, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (137, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (138, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (138, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (139, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Enable render offload support using the NVIDIA proprietary driver via PRIME.\n\nIf this is enabled, then the bus IDs of the NVIDIA and Intel GPUs have to be\nspecified (<option>hardware.nvidia.prime.nvidiaBusId</option> and\n<option>hardware.nvidia.prime.intelBusId</option>).\n",
                },
               ],
               position: (139, 21),
              },
             ),
            ],
            recursive: false,
            position: (136, 53),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (148, 5),
           },
           Raw {
            content: "nvidia",
            position: (148, 14),
           },
           Raw {
            content: "nvidiaSettings",
            position: (148, 21),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (148, 38),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (149, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (149, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (150, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (150, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (150, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (151, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to add nvidia-settings, NVIDIA's GUI configuration tool, to\nsystemPackages.\n",
                },
               ],
               position: (151, 21),
              },
             ),
            ],
            recursive: false,
            position: (148, 47),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (157, 5),
           },
           Raw {
            content: "nvidia",
            position: (157, 14),
           },
           Raw {
            content: "nvidiaPersistenced",
            position: (157, 21),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (157, 42),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (158, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (158, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (159, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (159, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (159, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (160, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Update for NVIDA GPU headless mode, i.e. nvidia-persistenced. It ensures all\nGPUs stay awake even during headless mode.\n",
                },
               ],
               position: (160, 21),
              },
             ),
            ],
            recursive: false,
            position: (157, 51),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (166, 5),
           },
           Raw {
            content: "nvidia",
            position: (166, 14),
           },
           Raw {
            content: "package",
            position: (166, 21),
           },
          ],
         },
         FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (166, 31),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "mkOption",
              position: (166, 35),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (167, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (167, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "types",
                  position: (167, 18),
                 },
                 Raw {
                  content: "package",
                  position: (167, 24),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (168, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (168, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "boot",
                  position: (168, 24),
                 },
                 Raw {
                  content: "kernelPackages",
                  position: (168, 29),
                 },
                 Raw {
                  content: "nvidiaPackages",
                  position: (168, 44),
                 },
                 Raw {
                  content: "stable",
                  position: (168, 59),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (169, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (169, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "config.boot.kernelPackages.nvidiaPackages.stable",
                  },
                 ],
                 position: (169, 39),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (170, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The NVIDIA X11 derivation to use.\n",
                },
               ],
               position: (170, 21),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (173, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (173, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "config.boot.kernelPackages.nvidiaPackages.legacy_340",
                  },
                 ],
                 position: (173, 35),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (166, 44),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (39, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (177, 3),
        },
       ],
      },
      LetIn {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "igpuDriver",
            position: (178, 7),
           },
          ],
         },
         IfThenElse {
          predicate: BinaryOperation {
           operator: NotEqualTo,
           operands: [
            PropertyAccess {
             expression: Variable {
              identifier: "pCfg",
              position: (178, 23),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "intelBusId",
                position: (178, 28),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [],
             position: (178, 42),
            },
           ],
           position: (178, 39),
          },
          then: String {
           parts: [
            Raw {
             content: "modesetting",
            },
           ],
           position: (178, 50),
          },
          else_: String {
           parts: [
            Raw {
             content: "amdgpu",
            },
           ],
           position: (178, 69),
          },
          position: (178, 20),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "igpuBusId",
            position: (179, 7),
           },
          ],
         },
         IfThenElse {
          predicate: BinaryOperation {
           operator: NotEqualTo,
           operands: [
            PropertyAccess {
             expression: Variable {
              identifier: "pCfg",
              position: (179, 22),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "intelBusId",
                position: (179, 27),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [],
             position: (179, 41),
            },
           ],
           position: (179, 38),
          },
          then: PropertyAccess {
           expression: Variable {
            identifier: "pCfg",
            position: (179, 49),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "intelBusId",
              position: (179, 54),
             },
            ],
           },
           default: None,
          },
          else_: PropertyAccess {
           expression: Variable {
            identifier: "pCfg",
            position: (179, 70),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "amdgpuBusId",
              position: (179, 75),
             },
            ],
           },
           default: None,
          },
          position: (179, 19),
         },
        ),
       ],
       target: FunctionApplication {
        function: Variable {
         identifier: "mkIf",
         position: (180, 6),
        },
        arguments: [
         Variable {
          identifier: "enabled",
          position: (180, 11),
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "assertions",
               position: (181, 5),
              },
             ],
            },
            List {
             elements: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (183, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   Variable {
                    identifier: "primeEnabled",
                    position: (183, 21),
                   },
                   BinaryOperation {
                    operator: LogicalOr,
                    operands: [
                     BinaryOperation {
                      operator: EqualTo,
                      operands: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "pCfg",
                         position: (183, 37),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "intelBusId",
                           position: (183, 42),
                          },
                         ],
                        },
                        default: None,
                       },
                       String {
                        parts: [],
                        position: (183, 56),
                       },
                      ],
                      position: (183, 53),
                     },
                     BinaryOperation {
                      operator: EqualTo,
                      operands: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "pCfg",
                         position: (183, 62),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "amdgpuBusId",
                           position: (183, 67),
                          },
                         ],
                        },
                        default: None,
                       },
                       String {
                        parts: [],
                        position: (183, 82),
                       },
                      ],
                      position: (183, 79),
                     },
                    ],
                    position: (183, 59),
                   },
                  ],
                  position: (183, 34),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (184, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "You cannot configure both an Intel iGPU and an AMD APU. Pick the one corresponding to your processor.\n",
                   },
                  ],
                  position: (184, 19),
                 },
                ),
               ],
               recursive: false,
               position: (182, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (190, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   Variable {
                    identifier: "primeEnabled",
                    position: (190, 21),
                   },
                   BinaryOperation {
                    operator: LogicalAnd,
                    operands: [
                     BinaryOperation {
                      operator: NotEqualTo,
                      operands: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "pCfg",
                         position: (190, 37),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "nvidiaBusId",
                           position: (190, 42),
                          },
                         ],
                        },
                        default: None,
                       },
                       String {
                        parts: [],
                        position: (190, 57),
                       },
                      ],
                      position: (190, 54),
                     },
                     BinaryOperation {
                      operator: LogicalOr,
                      operands: [
                       BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "pCfg",
                           position: (190, 64),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "intelBusId",
                             position: (190, 69),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [],
                          position: (190, 83),
                         },
                        ],
                        position: (190, 80),
                       },
                       BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "pCfg",
                           position: (190, 89),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "amdgpuBusId",
                             position: (190, 94),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [],
                          position: (190, 109),
                         },
                        ],
                        position: (190, 106),
                       },
                      ],
                      position: (190, 86),
                     },
                    ],
                    position: (190, 60),
                   },
                  ],
                  position: (190, 34),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (191, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "When NVIDIA PRIME is enabled, the GPU bus IDs must configured.\n",
                   },
                  ],
                  position: (191, 19),
                 },
                ),
               ],
               recursive: false,
               position: (189, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (197, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "offloadCfg",
                     position: (197, 21),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "enable",
                       position: (197, 32),
                      },
                     ],
                    },
                    default: None,
                   },
                   FunctionApplication {
                    function: Variable {
                     identifier: "versionAtLeast",
                     position: (197, 42),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "nvidia_x11",
                       position: (197, 57),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "version",
                         position: (197, 68),
                        },
                       ],
                      },
                      default: None,
                     },
                     String {
                      parts: [
                       Raw {
                        content: "435.21",
                       },
                      ],
                      position: (197, 76),
                     },
                    ],
                   },
                  ],
                  position: (197, 39),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (198, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "NVIDIA PRIME render offload is currently only supported on versions >= 435.21.",
                   },
                  ],
                  position: (198, 19),
                 },
                ),
               ],
               recursive: false,
               position: (196, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (202, 9),
                   },
                  ],
                 },
                 UnaryOperation {
                  operator: Not,
                  operand: BinaryOperation {
                   operator: LogicalAnd,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "syncCfg",
                      position: (202, 23),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (202, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "offloadCfg",
                      position: (202, 41),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (202, 52),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (202, 38),
                  },
                  position: (202, 21),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (203, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Only one NVIDIA PRIME solution may be used at a time.",
                   },
                  ],
                  position: (203, 19),
                 },
                ),
               ],
               recursive: false,
               position: (201, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (207, 9),
                   },
                  ],
                 },
                 UnaryOperation {
                  operator: Not,
                  operand: BinaryOperation {
                   operator: LogicalAnd,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "syncCfg",
                      position: (207, 23),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (207, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (207, 41),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "powerManagement",
                        position: (207, 45),
                       },
                       Raw {
                        content: "finegrained",
                        position: (207, 61),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (207, 38),
                  },
                  position: (207, 21),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (208, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Sync precludes powering down the NVIDIA GPU.",
                   },
                  ],
                  position: (208, 19),
                 },
                ),
               ],
               recursive: false,
               position: (206, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (212, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (212, 21),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "powerManagement",
                       position: (212, 25),
                      },
                      Raw {
                       content: "finegrained",
                       position: (212, 41),
                      },
                     ],
                    },
                    default: None,
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "offloadCfg",
                     position: (212, 56),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "enable",
                       position: (212, 67),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                  position: (212, 53),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (213, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Fine-grained power management requires offload to be enabled.",
                   },
                  ],
                  position: (213, 19),
                 },
                ),
               ],
               recursive: false,
               position: (211, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (217, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (217, 21),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "powerManagement",
                       position: (217, 25),
                      },
                      Raw {
                       content: "enable",
                       position: (217, 41),
                      },
                     ],
                    },
                    default: None,
                   },
                   BinaryOperation {
                    operator: LogicalAnd,
                    operands: [
                     FunctionApplication {
                      function: PropertyAccess {
                       expression: Variable {
                        identifier: "builtins",
                        position: (218, 11),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "pathExists",
                          position: (218, 20),
                         },
                        ],
                       },
                       default: None,
                      },
                      arguments: [
                       BinaryOperation {
                        operator: Addition,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (218, 32),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "package",
                             position: (218, 36),
                            },
                            Raw {
                             content: "out",
                             position: (218, 44),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [
                           Raw {
                            content: "/bin/nvidia-sleep.sh",
                           },
                          ],
                          position: (218, 50),
                         },
                        ],
                        position: (218, 48),
                       },
                      ],
                     },
                     FunctionApplication {
                      function: PropertyAccess {
                       expression: Variable {
                        identifier: "builtins",
                        position: (219, 11),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "pathExists",
                          position: (219, 20),
                         },
                        ],
                       },
                       default: None,
                      },
                      arguments: [
                       BinaryOperation {
                        operator: Addition,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (219, 32),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "package",
                             position: (219, 36),
                            },
                            Raw {
                             content: "out",
                             position: (219, 44),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [
                           Raw {
                            content: "/lib/systemd/system-sleep/nvidia",
                           },
                          ],
                          position: (219, 50),
                         },
                        ],
                        position: (219, 48),
                       },
                      ],
                     },
                    ],
                    position: (218, 74),
                   },
                  ],
                  position: (217, 48),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (221, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Required files for driver based power management don't exist.",
                   },
                  ],
                  position: (221, 19),
                 },
                ),
               ],
               recursive: false,
               position: (216, 7),
              },
             ],
             position: (181, 18),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (239, 5),
              },
              Raw {
               content: "xserver",
               position: (239, 14),
              },
              Raw {
               content: "useGlamor",
               position: (239, 22),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkDefault",
              position: (239, 34),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "offloadCfg",
                position: (239, 44),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "enable",
                  position: (239, 55),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (241, 5),
              },
              Raw {
               content: "xserver",
               position: (241, 14),
              },
              Raw {
               content: "drivers",
               position: (241, 22),
              },
             ],
            },
            LetIn {
             bindings: [],
             target: BinaryOperation {
              operator: Concatenation,
              operands: [
               FunctionApplication {
                function: Variable {
                 identifier: "optional",
                 position: (242, 8),
                },
                arguments: [
                 Variable {
                  identifier: "primeEnabled",
                  position: (242, 17),
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "name",
                       position: (243, 7),
                      },
                     ],
                    },
                    Variable {
                     identifier: "igpuDriver",
                     position: (243, 14),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "display",
                       position: (244, 7),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "offloadCfg",
                      position: (244, 17),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (244, 28),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "modules",
                       position: (245, 7),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "optional",
                      position: (245, 17),
                     },
                     arguments: [
                      BinaryOperation {
                       operator: EqualTo,
                       operands: [
                        Variable {
                         identifier: "igpuDriver",
                         position: (245, 27),
                        },
                        String {
                         parts: [
                          Raw {
                           content: "amdgpu",
                          },
                         ],
                         position: (245, 41),
                        },
                       ],
                       position: (245, 38),
                      },
                      List {
                       elements: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "pkgs",
                          position: (245, 53),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "xorg",
                            position: (245, 58),
                           },
                           Raw {
                            content: "xf86videoamdgpu",
                            position: (245, 63),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                       position: (245, 51),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "deviceSection",
                       position: (246, 7),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "BusID \"",
                      },
                      Expression {
                       expression: Variable {
                        identifier: "igpuBusId",
                        position: (247, 18),
                       },
                      },
                      Raw {
                       content: "\"\n",
                      },
                      Expression {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "optionalString",
                         position: (248, 11),
                        },
                        arguments: [
                         BinaryOperation {
                          operator: LogicalAnd,
                          operands: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "syncCfg",
                             position: (248, 27),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "enable",
                               position: (248, 35),
                              },
                             ],
                            },
                            default: None,
                           },
                           BinaryOperation {
                            operator: NotEqualTo,
                            operands: [
                             Variable {
                              identifier: "igpuDriver",
                              position: (248, 45),
                             },
                             String {
                              parts: [
                               Raw {
                                content: "amdgpu",
                               },
                              ],
                              position: (248, 59),
                             },
                            ],
                            position: (248, 56),
                           },
                          ],
                          position: (248, 42),
                         },
                         String {
                          parts: [
                           Raw {
                            content: "Option \"AccelMethod\" \"none\"",
                           },
                          ],
                          position: (248, 69),
                         },
                        ],
                       },
                      },
                      Raw {
                       content: "\n",
                      },
                     ],
                     position: (246, 23),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (242, 30),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "singleton",
                 position: (250, 10),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "name",
                       position: (251, 7),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "nvidia",
                      },
                     ],
                     position: (251, 14),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "modules",
                       position: (252, 7),
                      },
                     ],
                    },
                    List {
                     elements: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "nvidia_x11",
                        position: (252, 19),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "bin",
                          position: (252, 30),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (252, 17),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "display",
                       position: (253, 7),
                      },
                     ],
                    },
                    UnaryOperation {
                     operator: Not,
                     operand: PropertyAccess {
                      expression: Variable {
                       identifier: "offloadCfg",
                       position: (253, 18),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "enable",
                         position: (253, 29),
                        },
                       ],
                      },
                      default: None,
                     },
                     position: (253, 17),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "deviceSection",
                       position: (254, 7),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "optionalString",
                      position: (254, 23),
                     },
                     arguments: [
                      Variable {
                       identifier: "primeEnabled",
                       position: (254, 38),
                      },
                      String {
                       parts: [
                        Raw {
                         content: "BusID \"",
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "pCfg",
                           position: (256, 20),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "nvidiaBusId",
                             position: (256, 25),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: "\"\n",
                        },
                        Expression {
                         expression: FunctionApplication {
                          function: Variable {
                           identifier: "optionalString",
                           position: (257, 13),
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "syncCfg",
                             position: (257, 28),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "allowExternalGpu",
                               position: (257, 36),
                              },
                             ],
                            },
                            default: None,
                           },
                           String {
                            parts: [
                             Raw {
                              content: "Option \"AllowExternalGpus\"",
                             },
                            ],
                            position: (257, 53),
                           },
                          ],
                         },
                        },
                        Raw {
                         content: "\n",
                        },
                        Expression {
                         expression: FunctionApplication {
                          function: Variable {
                           identifier: "optionalString",
                           position: (258, 13),
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (258, 28),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "powerManagement",
                               position: (258, 32),
                              },
                              Raw {
                               content: "finegrained",
                               position: (258, 48),
                              },
                             ],
                            },
                            default: None,
                           },
                           String {
                            parts: [
                             Raw {
                              content: "Option \"NVreg_DynamicPowerManagement=0x02\"",
                             },
                            ],
                            position: (258, 60),
                           },
                          ],
                         },
                        },
                        Raw {
                         content: "\n",
                        },
                       ],
                       position: (255, 9),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "screenSection",
                       position: (260, 7),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Option \"RandRRotation\" \"on\"\n",
                      },
                      Expression {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "optionalString",
                         position: (263, 13),
                        },
                        arguments: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "syncCfg",
                           position: (263, 28),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "enable",
                             position: (263, 36),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [
                           Raw {
                            content: "Option \"AllowEmptyInitialConfiguration\"",
                           },
                          ],
                          position: (263, 43),
                         },
                        ],
                       },
                      },
                      Raw {
                       content: "\n",
                      },
                     ],
                     position: (261, 9),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (250, 20),
                 },
                ],
               },
              ],
              position: (250, 7),
             },
             position: (241, 32),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (267, 5),
              },
              Raw {
               content: "xserver",
               position: (267, 14),
              },
              Raw {
               content: "serverLayoutSection",
               position: (267, 22),
              },
             ],
            },
            BinaryOperation {
             operator: Addition,
             operands: [
              FunctionApplication {
               function: Variable {
                identifier: "optionalString",
                position: (267, 44),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "syncCfg",
                  position: (267, 59),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "enable",
                    position: (267, 67),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "Inactive \"Device-",
                  },
                  Expression {
                   expression: Variable {
                    identifier: "igpuDriver",
                    position: (268, 26),
                   },
                  },
                  Raw {
                   content: "[0]\"\n",
                  },
                 ],
                 position: (267, 74),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "optionalString",
                position: (269, 10),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "offloadCfg",
                  position: (269, 25),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "enable",
                    position: (269, 36),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "Option \"AllowNVIDIAGPUScreens\"\n",
                  },
                 ],
                 position: (269, 43),
                },
               ],
              },
             ],
             position: (269, 8),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (273, 5),
              },
              Raw {
               content: "xserver",
               position: (273, 14),
              },
              Raw {
               content: "displayManager",
               position: (273, 22),
              },
              Raw {
               content: "setupCommands",
               position: (273, 37),
              },
             ],
            },
            LetIn {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "sinkGpuProviderName",
                  position: (274, 7),
                 },
                ],
               },
               IfThenElse {
                predicate: BinaryOperation {
                 operator: EqualTo,
                 operands: [
                  Variable {
                   identifier: "igpuDriver",
                   position: (274, 32),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "amdgpu",
                    },
                   ],
                   position: (274, 46),
                  },
                 ],
                 position: (274, 43),
                },
                then: String {
                 parts: [
                  Raw {
                   content: "`",
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (276, 13),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "xorg",
                       position: (276, 18),
                      },
                      Raw {
                       content: "xrandr",
                       position: (276, 23),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/xrandr --listproviders | ",
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (276, 62),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "gnugrep",
                       position: (276, 67),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/grep -i AMD | ",
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (276, 96),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "gnused",
                       position: (276, 101),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/sed -n 's/^.*name://p'`",
                  },
                 ],
                 position: (276, 9),
                },
                else_: Variable {
                 identifier: "igpuDriver",
                 position: (278, 9),
                },
                position: (274, 29),
               },
              ),
             ],
             target: FunctionApplication {
              function: Variable {
               identifier: "optionalString",
               position: (279, 8),
              },
              arguments: [
               PropertyAccess {
                expression: Variable {
                 identifier: "syncCfg",
                 position: (279, 23),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "enable",
                   position: (279, 31),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "# Added by nvidia configuration module for Optimus/PRIME.\n",
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (281, 9),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "xorg",
                      position: (281, 14),
                     },
                     Raw {
                      content: "xrandr",
                      position: (281, 19),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/xrandr --setprovideroutputsource \"",
                 },
                 Expression {
                  expression: Variable {
                   identifier: "sinkGpuProviderName",
                   position: (281, 67),
                  },
                 },
                 Raw {
                  content: "\" NVIDIA-0\n",
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "pkgs",
                    position: (282, 9),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "xorg",
                      position: (282, 14),
                     },
                     Raw {
                      content: "xrandr",
                      position: (282, 19),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/xrandr --auto\n",
                 },
                ],
                position: (279, 38),
               },
              ],
             },
             position: (273, 53),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (285, 5),
              },
              Raw {
               content: "etc",
               position: (285, 17),
              },
              Expression {
               expression: __StringParts(
                [
                 Raw {
                  content: "nvidia/nvidia-application-profiles-rc",
                 },
                ],
               ),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkIf",
              position: (285, 63),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (285, 68),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "useProfiles",
                  position: (285, 79),
                 },
                ],
               },
               default: None,
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "source",
                    position: (286, 7),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (286, 19),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "bin",
                        position: (286, 30),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/share/nvidia/nvidia-application-profiles-rc",
                   },
                  ],
                  position: (286, 16),
                 },
                ),
               ],
               recursive: false,
               position: (285, 91),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (290, 5),
              },
              Raw {
               content: "etc",
               position: (290, 17),
              },
              Expression {
               expression: __StringParts(
                [
                 Raw {
                  content: "egl/egl_external_platform.d",
                 },
                ],
               ),
              },
              Raw {
               content: "source",
               position: (290, 51),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "/run/opengl-driver/share/egl/egl_external_platform.d/",
              },
             ],
             position: (291, 7),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "hardware",
               position: (293, 5),
              },
              Raw {
               content: "opengl",
               position: (293, 14),
              },
              Raw {
               content: "extraPackages",
               position: (293, 21),
              },
             ],
            },
            List {
             elements: [
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (294, 7),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "out",
                  position: (294, 18),
                 },
                ],
               },
               default: None,
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (295, 7),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "nvidia-vaapi-driver",
                  position: (295, 12),
                 },
                ],
               },
               default: None,
              },
             ],
             position: (293, 37),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "hardware",
               position: (297, 5),
              },
              Raw {
               content: "opengl",
               position: (297, 14),
              },
              Raw {
               content: "extraPackages32",
               position: (297, 21),
              },
             ],
            },
            List {
             elements: [
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (298, 7),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "lib32",
                  position: (298, 18),
                 },
                ],
               },
               default: None,
              },
              PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (299, 7),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "pkgsi686Linux",
                  position: (299, 12),
                 },
                 Raw {
                  content: "nvidia-vaapi-driver",
                  position: (299, 26),
                 },
                ],
               },
               default: None,
              },
             ],
             position: (297, 39),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (302, 5),
              },
              Raw {
               content: "systemPackages",
               position: (302, 17),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              List {
               elements: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "nvidia_x11",
                  position: (302, 36),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "bin",
                    position: (302, 47),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (302, 34),
              },
              BinaryOperation {
               operator: Concatenation,
               operands: [
                FunctionApplication {
                 function: Variable {
                  identifier: "optionals",
                  position: (303, 10),
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (303, 20),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nvidiaSettings",
                      position: (303, 24),
                     },
                    ],
                   },
                   default: None,
                  },
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (303, 41),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "settings",
                        position: (303, 52),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (303, 39),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "optionals",
                  position: (304, 10),
                 },
                 arguments: [
                  Variable {
                   identifier: "nvidiaPersistencedEnabled",
                   position: (304, 20),
                  },
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (304, 48),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "persistenced",
                        position: (304, 59),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (304, 46),
                  },
                 ],
                },
               ],
               position: (304, 7),
              },
             ],
             position: (303, 7),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (306, 5),
              },
              Raw {
               content: "packages",
               position: (306, 13),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "optional",
              position: (306, 24),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (306, 33),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "powerManagement",
                  position: (306, 37),
                 },
                 Raw {
                  content: "enable",
                  position: (306, 53),
                 },
                ],
               },
               default: None,
              },
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (306, 60),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "out",
                  position: (306, 71),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (308, 5),
              },
              Raw {
               content: "services",
               position: (308, 13),
              },
             ],
            },
            LetIn {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "baseNvidiaService",
                  position: (309, 7),
                 },
                ],
               },
               Function {
                argument: Some(
                 "state",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "description",
                      position: (310, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "NVIDIA system ",
                     },
                     Expression {
                      expression: Variable {
                       identifier: "state",
                       position: (310, 40),
                      },
                     },
                     Raw {
                      content: " actions",
                     },
                    ],
                    position: (310, 23),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "path",
                      position: (312, 9),
                     },
                    ],
                   },
                   With {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (312, 21),
                    },
                    target: List {
                     elements: [
                      Variable {
                       identifier: "kbd",
                       position: (312, 29),
                      },
                     ],
                     position: (312, 27),
                    },
                    position: (312, 16),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "serviceConfig",
                      position: (313, 9),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "Type",
                         position: (314, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "oneshot",
                        },
                       ],
                       position: (314, 18),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "ExecStart",
                         position: (315, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "nvidia_x11",
                           position: (315, 26),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "out",
                             position: (315, 37),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: "/bin/nvidia-sleep.sh '",
                        },
                        Expression {
                         expression: Variable {
                          identifier: "state",
                          position: (315, 65),
                         },
                        },
                        Raw {
                         content: "'",
                        },
                       ],
                       position: (315, 23),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (313, 25),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (309, 34),
                },
                position: (309, 27),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "nvidiaService",
                  position: (319, 7),
                 },
                ],
               },
               Function {
                argument: Some(
                 "sleepState",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: BinaryOperation {
                 operator: Update,
                 operands: [
                  FunctionApplication {
                   function: Variable {
                    identifier: "baseNvidiaService",
                    position: (319, 36),
                   },
                   arguments: [
                    Variable {
                     identifier: "sleepState",
                     position: (319, 54),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "before",
                        position: (320, 9),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "systemd-",
                         },
                         Expression {
                          expression: Variable {
                           identifier: "sleepState",
                           position: (320, 31),
                          },
                         },
                         Raw {
                          content: ".service",
                         },
                        ],
                        position: (320, 20),
                       },
                      ],
                      position: (320, 18),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "requiredBy",
                        position: (321, 9),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "systemd-",
                         },
                         Expression {
                          expression: Variable {
                           identifier: "sleepState",
                           position: (321, 35),
                          },
                         },
                         Raw {
                          content: ".service",
                         },
                        ],
                        position: (321, 24),
                       },
                      ],
                      position: (321, 22),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (319, 69),
                  },
                 ],
                 position: (319, 66),
                },
                position: (319, 23),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "services",
                  position: (324, 7),
                 },
                ],
               },
               BinaryOperation {
                operator: Update,
                operands: [
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "builtins",
                    position: (324, 19),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listToAttrs",
                      position: (324, 28),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   FunctionApplication {
                    function: Variable {
                     identifier: "map",
                     position: (324, 41),
                    },
                    arguments: [
                     Function {
                      argument: Some(
                       "t",
                      ),
                      arguments: FunctionArguments {
                       arguments: [],
                       ellipsis: false,
                      },
                      definition: FunctionApplication {
                       function: Variable {
                        identifier: "nameValuePair",
                        position: (324, 49),
                       },
                       arguments: [
                        String {
                         parts: [
                          Raw {
                           content: "nvidia-",
                          },
                          Expression {
                           expression: Variable {
                            identifier: "t",
                            position: (324, 73),
                           },
                          },
                         ],
                         position: (324, 63),
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "nvidiaService",
                          position: (324, 78),
                         },
                         arguments: [
                          Variable {
                           identifier: "t",
                           position: (324, 92),
                          },
                         ],
                        },
                       ],
                      },
                      position: (324, 46),
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "hibernate",
                         },
                        ],
                        position: (324, 97),
                       },
                       String {
                        parts: [
                         Raw {
                          content: "suspend",
                         },
                        ],
                        position: (324, 109),
                       },
                      ],
                      position: (324, 96),
                     },
                    ],
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "nvidia-resume",
                       position: (326, 11),
                      },
                     ],
                    },
                    BinaryOperation {
                     operator: Update,
                     operands: [
                      FunctionApplication {
                       function: Variable {
                        identifier: "baseNvidiaService",
                        position: (326, 28),
                       },
                       arguments: [
                        String {
                         parts: [
                          Raw {
                           content: "resume",
                          },
                         ],
                         position: (326, 46),
                        },
                       ],
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "after",
                            position: (327, 13),
                           },
                          ],
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "systemd-suspend.service",
                             },
                            ],
                            position: (327, 23),
                           },
                           String {
                            parts: [
                             Raw {
                              content: "systemd-hibernate.service",
                             },
                            ],
                            position: (327, 49),
                           },
                          ],
                          position: (327, 21),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "requiredBy",
                            position: (328, 13),
                           },
                          ],
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "systemd-suspend.service",
                             },
                            ],
                            position: (328, 28),
                           },
                           String {
                            parts: [
                             Raw {
                              content: "systemd-hibernate.service",
                             },
                            ],
                            position: (328, 54),
                           },
                          ],
                          position: (328, 26),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (326, 59),
                      },
                     ],
                     position: (326, 56),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (325, 12),
                 },
                ],
                position: (325, 9),
               },
              ),
             ],
             target: BinaryOperation {
              operator: Update,
              operands: [
               FunctionApplication {
                function: Variable {
                 identifier: "optionalAttrs",
                 position: (331, 8),
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (331, 22),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "powerManagement",
                     position: (331, 26),
                    },
                    Raw {
                     content: "enable",
                     position: (331, 42),
                    },
                   ],
                  },
                  default: None,
                 },
                 Variable {
                  identifier: "services",
                  position: (331, 49),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "optionalAttrs",
                 position: (332, 10),
                },
                arguments: [
                 Variable {
                  identifier: "nvidiaPersistencedEnabled",
                  position: (332, 24),
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Expression {
                       expression: __StringParts(
                        [
                         Raw {
                          content: "nvidia-persistenced",
                         },
                        ],
                       ),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "mkIf",
                      position: (333, 33),
                     },
                     arguments: [
                      Variable {
                       identifier: "nvidiaPersistencedEnabled",
                       position: (333, 38),
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "description",
                            position: (334, 11),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "NVIDIA Persistence Daemon",
                           },
                          ],
                          position: (334, 25),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "wantedBy",
                            position: (335, 11),
                           },
                          ],
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "multi-user.target",
                             },
                            ],
                            position: (335, 24),
                           },
                          ],
                          position: (335, 22),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "serviceConfig",
                            position: (336, 11),
                           },
                          ],
                         },
                         Map {
                          bindings: [
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "Type",
                               position: (337, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Raw {
                               content: "forking",
                              },
                             ],
                             position: (337, 20),
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "Restart",
                               position: (338, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Raw {
                               content: "always",
                              },
                             ],
                             position: (338, 23),
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "PIDFile",
                               position: (339, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Raw {
                               content: "/var/run/nvidia-persistenced/nvidia-persistenced.pid",
                              },
                             ],
                             position: (339, 23),
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "ExecStart",
                               position: (340, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Expression {
                               expression: PropertyAccess {
                                expression: Variable {
                                 identifier: "nvidia_x11",
                                 position: (340, 28),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "persistenced",
                                   position: (340, 39),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              },
                              Raw {
                               content: "/bin/nvidia-persistenced --verbose",
                              },
                             ],
                             position: (340, 25),
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "ExecStopPost",
                               position: (341, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Expression {
                               expression: PropertyAccess {
                                expression: Variable {
                                 identifier: "pkgs",
                                 position: (341, 31),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "coreutils",
                                   position: (341, 36),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              },
                              Raw {
                               content: "/bin/rm -rf /var/run/nvidia-persistenced",
                              },
                             ],
                             position: (341, 28),
                            },
                           ),
                          ],
                          recursive: false,
                          position: (336, 27),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (333, 64),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (332, 50),
                 },
                ],
               },
              ],
              position: (332, 7),
             },
             position: (308, 24),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (346, 5),
              },
              Raw {
               content: "tmpfiles",
               position: (346, 13),
              },
              Raw {
               content: "rules",
               position: (346, 22),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (346, 30),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (346, 39),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "virtualisation",
                    position: (346, 46),
                   },
                   Raw {
                    content: "docker",
                    position: (346, 61),
                   },
                   Raw {
                    content: "enableNvidia",
                    position: (346, 68),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "L+ /run/nvidia-docker/bin - - - - ",
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "nvidia_x11",
                     position: (347, 46),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "bin",
                       position: (347, 57),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/origBin",
                  },
                 ],
                 position: (347, 9),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (348, 10),
               },
               arguments: [
                BinaryOperation {
                 operator: LogicalAnd,
                 operands: [
                  BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (348, 20),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "persistenced",
                        position: (348, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    Variable {
                     identifier: "null",
                     position: (348, 47),
                    },
                   ],
                   position: (348, 44),
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "config",
                    position: (348, 55),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "virtualisation",
                      position: (348, 62),
                     },
                     Raw {
                      content: "docker",
                      position: (348, 77),
                     },
                     Raw {
                      content: "enableNvidia",
                      position: (348, 84),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                 position: (348, 52),
                },
                String {
                 parts: [
                  Raw {
                   content: "L+ /run/nvidia-docker/extras/bin/nvidia-persistenced - - - - ",
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "nvidia_x11",
                     position: (349, 73),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "persistenced",
                       position: (349, 84),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/origBin/nvidia-persistenced",
                  },
                 ],
                 position: (349, 9),
                },
               ],
              },
             ],
             position: (348, 7),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (351, 5),
              },
              Raw {
               content: "extraModulePackages",
               position: (351, 10),
              },
             ],
            },
            List {
             elements: [
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (351, 34),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bin",
                  position: (351, 45),
                 },
                ],
               },
               default: None,
              },
             ],
             position: (351, 32),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (354, 5),
              },
              Raw {
               content: "kernelModules",
               position: (354, 10),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "nvidia-uvm",
                  },
                 ],
                 position: (354, 28),
                },
               ],
               position: (354, 26),
              },
              FunctionApplication {
               function: Variable {
                identifier: "optionals",
                position: (355, 7),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (355, 17),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (355, 24),
                   },
                   Raw {
                    content: "xserver",
                    position: (355, 33),
                   },
                   Raw {
                    content: "enable",
                    position: (355, 41),
                   },
                  ],
                 },
                 default: None,
                },
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "nvidia",
                    },
                   ],
                   position: (355, 50),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "nvidia_modeset",
                    },
                   ],
                   position: (355, 59),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "nvidia_drm",
                    },
                   ],
                   position: (355, 76),
                  },
                 ],
                 position: (355, 48),
                },
               ],
              },
             ],
             position: (354, 43),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (358, 5),
              },
              Raw {
               content: "kernelParams",
               position: (358, 10),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (358, 25),
               },
               arguments: [
                BinaryOperation {
                 operator: LogicalOr,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "offloadCfg",
                    position: (358, 35),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "enable",
                      position: (358, 46),
                     },
                    ],
                   },
                   default: None,
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (358, 56),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "modesetting",
                      position: (358, 60),
                     },
                     Raw {
                      content: "enable",
                      position: (358, 72),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                 position: (358, 53),
                },
                String {
                 parts: [
                  Raw {
                   content: "nvidia-drm.modeset=1",
                  },
                 ],
                 position: (358, 80),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (359, 10),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (359, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "powerManagement",
                    position: (359, 23),
                   },
                   Raw {
                    content: "enable",
                    position: (359, 39),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "nvidia.NVreg_PreserveVideoMemoryAllocations=1",
                  },
                 ],
                 position: (359, 46),
                },
               ],
              },
             ],
             position: (359, 7),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (361, 5),
              },
              Raw {
               content: "udev",
               position: (361, 14),
              },
              Raw {
               content: "extraRules",
               position: (361, 19),
              },
             ],
            },
            BinaryOperation {
             operator: Addition,
             operands: [
              String {
               parts: [
                Raw {
                 content: "# Create /dev/nvidia-uvm when the nvidia-uvm module is loaded.\nKERNEL==\"nvidia\", RUN+=\"",
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (364, 35),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (364, 40),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " -c 'mknod -m 666 /dev/nvidiactl c $$(grep nvidia-frontend /proc/devices | cut -d \\  -f 1) 255'\"\nKERNEL==\"nvidia_modeset\", RUN+=\"",
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (365, 43),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (365, 48),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " -c 'mknod -m 666 /dev/nvidia-modeset c $$(grep nvidia-frontend /proc/devices | cut -d \\  -f 1) 254'\"\nKERNEL==\"card*\", SUBSYSTEM==\"drm\", DRIVERS==\"nvidia\", RUN+=\"",
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (366, 71),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (366, 76),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " -c 'mknod -m 666 /dev/nvidia%n c $$(grep nvidia-frontend /proc/devices | cut -d \\  -f 1) %n'\"\nKERNEL==\"nvidia_uvm\", RUN+=\"",
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (367, 39),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (367, 44),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " -c 'mknod -m 666 /dev/nvidia-uvm c $$(grep nvidia-uvm /proc/devices | cut -d \\  -f 1) 0'\"\nKERNEL==\"nvidia_uvm\", RUN+=\"",
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (368, 39),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (368, 44),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: " -c 'mknod -m 666 /dev/nvidia-uvm-tools c $$(grep nvidia-uvm /proc/devices | cut -d \\  -f 1) 0'\"\n",
                },
               ],
               position: (362, 7),
              },
              FunctionApplication {
               function: Variable {
                identifier: "optionalString",
                position: (369, 12),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (369, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "powerManagement",
                    position: (369, 31),
                   },
                   Raw {
                    content: "finegrained",
                    position: (369, 47),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "# Remove NVIDIA USB xHCI Host Controller devices, if present\nACTION==\"add\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x0c0330\", ATTR{remove}=\"1\"\n\n# Remove NVIDIA USB Type-C UCSI devices, if present\nACTION==\"add\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x0c8000\", ATTR{remove}=\"1\"\n\n# Remove NVIDIA Audio devices, if present\nACTION==\"add\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x040300\", ATTR{remove}=\"1\"\n\n# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind\nACTION==\"bind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x030000\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\nACTION==\"bind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x030200\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n\n# Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind\nACTION==\"unbind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x030000\", TEST==\"power/control\", ATTR{power/control}=\"on\"\nACTION==\"unbind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\"0x030200\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n",
                  },
                 ],
                 position: (369, 59),
                },
               ],
              },
             ],
             position: (369, 10),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (388, 5),
              },
              Raw {
               content: "extraModprobeConfig",
               position: (388, 10),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkIf",
              position: (388, 32),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (388, 37),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "powerManagement",
                  position: (388, 41),
                 },
                 Raw {
                  content: "finegrained",
                  position: (388, 57),
                 },
                ],
               },
               default: None,
              },
              String {
               parts: [
                Raw {
                 content: "options nvidia \"NVreg_DynamicPowerManagement=0x02\"\n",
                },
               ],
               position: (388, 69),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (392, 5),
              },
              Raw {
               content: "blacklistedKernelModules",
               position: (392, 10),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "nouveau",
                },
               ],
               position: (392, 39),
              },
              String {
               parts: [
                Raw {
                 content: "nvidiafb",
                },
               ],
               position: (392, 49),
              },
             ],
             position: (392, 37),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (394, 5),
              },
              Raw {
               content: "acpid",
               position: (394, 14),
              },
              Raw {
               content: "enable",
               position: (394, 20),
              },
             ],
            },
            Variable {
             identifier: "true",
             position: (394, 29),
            },
           ),
          ],
          recursive: false,
          position: (180, 19),
         },
        ],
       },
       position: (177, 12),
      },
     ),
    ],
    recursive: false,
    position: (30, 1),
   },
   position: (7, 1),
  },
  position: (5, 1),
 },
 position: (3, 1),
}