---
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, 37),
               },
              ],
             },
             Variable {
              identifier: "str",
              position: (10, 45),
             },
            ],
           },
           BinaryOperation {
            operator: NotEqualTo,
            operands: [
             Variable {
              identifier: "str",
              position: (10, 54),
             },
             String {
              parts: [
               Raw {
                content: "nvidia",
                position: (10, 62),
               },
              ],
             },
            ],
            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: (14, 1),
           },
          ],
         },
        ],
       },
       else_: IfThenElse {
        predicate: FunctionApplication {
         function: Variable {
          identifier: "elem",
          position: (16, 12),
         },
         arguments: [
          String {
           parts: [
            Raw {
             content: "nvidia",
             position: (16, 18),
            },
           ],
          },
          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,
     },
    ),
   ],
   target: Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "imports",
         position: (30, 3),
        },
       ],
      },
      List {
       elements: [
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (32, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (32, 33),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
               position: (32, 44),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
               position: (32, 53),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "enable",
               position: (32, 69),
              },
             ],
            },
           ],
           position: (32, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (32, 82),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
               position: (32, 93),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "prime",
               position: (32, 102),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "sync",
               position: (32, 110),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "enable",
               position: (32, 117),
              },
             ],
            },
           ],
           position: (32, 79),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (33, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (33, 33),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
               position: (33, 44),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
               position: (33, 53),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "allowExternalGpu",
               position: (33, 69),
              },
             ],
            },
           ],
           position: (33, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (33, 92),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
               position: (33, 103),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "prime",
               position: (33, 112),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "sync",
               position: (33, 120),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "allowExternalGpu",
               position: (33, 127),
              },
             ],
            },
           ],
           position: (33, 89),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (34, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (34, 33),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
               position: (34, 44),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
               position: (34, 53),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidiaBusId",
               position: (34, 69),
              },
             ],
            },
           ],
           position: (34, 30),
          },
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (34, 87),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
               position: (34, 98),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "prime",
               position: (34, 107),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidiaBusId",
               position: (34, 115),
              },
             ],
            },
           ],
           position: (34, 84),
          },
         ],
        },
        FunctionApplication {
         function: Variable {
          identifier: "mkRenamedOptionModule",
          position: (35, 8),
         },
         arguments: [
          List {
           elements: [
            String {
             parts: [
              Raw {
               content: "hardware",
               position: (35, 33),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "nvidia",
               position: (35, 44),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "optimus_prime",
               position: (35, 53),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "intelBusId",
               position: (35, 69),
              },
             ],
            },
           ],
           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: "intelBusId",
               position: (35, 114),
              },
             ],
            },
           ],
           position: (35, 83),
          },
         ],
        },
       ],
       position: (31, 5),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "options",
         position: (38, 3),
        },
       ],
      },
      Map {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (39, 5),
           },
           Raw {
            content: "nvidia",
            position: (39, 14),
           },
           Raw {
            content: "powerManagement",
            position: (39, 21),
           },
           Raw {
            content: "enable",
            position: (39, 37),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (39, 46),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (40, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (40, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (40, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (41, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (41, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (42, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (39, 55),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (48, 5),
           },
           Raw {
            content: "nvidia",
            position: (48, 14),
           },
           Raw {
            content: "powerManagement",
            position: (48, 21),
           },
           Raw {
            content: "finegrained",
            position: (48, 37),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (48, 51),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (49, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (49, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (49, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (50, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (50, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (51, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (48, 60),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (57, 5),
           },
           Raw {
            content: "nvidia",
            position: (57, 14),
           },
           Raw {
            content: "modesetting",
            position: (57, 21),
           },
           Raw {
            content: "enable",
            position: (57, 33),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (57, 42),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (58, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (58, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (58, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (59, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (59, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (60, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (57, 51),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (70, 5),
           },
           Raw {
            content: "nvidia",
            position: (70, 14),
           },
           Raw {
            content: "prime",
            position: (70, 21),
           },
           Raw {
            content: "nvidiaBusId",
            position: (70, 27),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (70, 41),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (71, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (71, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (71, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (72, 7),
                },
               ],
              },
              String {
               parts: [],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (73, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "PCI:1:0:0",
                 position: (73, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (74, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (70, 50),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (80, 5),
           },
           Raw {
            content: "nvidia",
            position: (80, 14),
           },
           Raw {
            content: "prime",
            position: (80, 21),
           },
           Raw {
            content: "intelBusId",
            position: (80, 27),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (80, 40),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (81, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (81, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (81, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (82, 7),
                },
               ],
              },
              String {
               parts: [],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (83, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "PCI:0:2:0",
                 position: (83, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (84, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (80, 49),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (90, 5),
           },
           Raw {
            content: "nvidia",
            position: (90, 14),
           },
           Raw {
            content: "prime",
            position: (90, 21),
           },
           Raw {
            content: "amdgpuBusId",
            position: (90, 27),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (90, 41),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (91, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (91, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "str",
                  position: (91, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (92, 7),
                },
               ],
              },
              String {
               parts: [],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (93, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "PCI:4:0:0",
                 position: (93, 18),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (94, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (90, 50),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (100, 5),
           },
           Raw {
            content: "nvidia",
            position: (100, 14),
           },
           Raw {
            content: "prime",
            position: (100, 21),
           },
           Raw {
            content: "sync",
            position: (100, 27),
           },
           Raw {
            content: "enable",
            position: (100, 32),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (100, 41),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (101, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (101, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (101, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (102, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (102, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (103, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (100, 50),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (127, 5),
           },
           Raw {
            content: "nvidia",
            position: (127, 14),
           },
           Raw {
            content: "prime",
            position: (127, 21),
           },
           Raw {
            content: "sync",
            position: (127, 27),
           },
           Raw {
            content: "allowExternalGpu",
            position: (127, 32),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (127, 51),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (128, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (128, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (128, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (129, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (129, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (130, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Configure X to allow external NVIDIA GPUs when using optimus.\n",
                 position: (131, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (127, 60),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (135, 5),
           },
           Raw {
            content: "nvidia",
            position: (135, 14),
           },
           Raw {
            content: "prime",
            position: (135, 21),
           },
           Raw {
            content: "offload",
            position: (135, 27),
           },
           Raw {
            content: "enable",
            position: (135, 35),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (135, 44),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (136, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (136, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (136, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (137, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (137, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (138, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (135, 53),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (147, 5),
           },
           Raw {
            content: "nvidia",
            position: (147, 14),
           },
           Raw {
            content: "nvidiaSettings",
            position: (147, 21),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (147, 38),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (148, 7),
                },
               ],
              },
              Variable {
               identifier: "true",
               position: (148, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (149, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (149, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (149, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (150, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "Whether to add nvidia-settings, NVIDIA's GUI configuration tool, to\nsystemPackages.\n",
                 position: (151, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (147, 47),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (156, 5),
           },
           Raw {
            content: "nvidia",
            position: (156, 14),
           },
           Raw {
            content: "nvidiaPersistenced",
            position: (156, 21),
           },
          ],
         },
         FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (156, 42),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (157, 7),
                },
               ],
              },
              Variable {
               identifier: "false",
               position: (157, 17),
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (158, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (158, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bool",
                  position: (158, 20),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (159, 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, 1),
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (156, 51),
           },
          ],
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "hardware",
            position: (165, 5),
           },
           Raw {
            content: "nvidia",
            position: (165, 14),
           },
           Raw {
            content: "package",
            position: (165, 21),
           },
          ],
         },
         FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "lib",
            position: (165, 31),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "mkOption",
              position: (165, 35),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "type",
                 position: (166, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (166, 14),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "types",
                  position: (166, 18),
                 },
                 Raw {
                  content: "package",
                  position: (166, 24),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "default",
                 position: (167, 7),
                },
               ],
              },
              PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (167, 17),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "boot",
                  position: (167, 24),
                 },
                 Raw {
                  content: "kernelPackages",
                  position: (167, 29),
                 },
                 Raw {
                  content: "nvidiaPackages",
                  position: (167, 44),
                 },
                 Raw {
                  content: "stable",
                  position: (167, 59),
                 },
                ],
               },
               default: None,
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "defaultText",
                 position: (168, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (168, 21),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "config.boot.kernelPackages.nvidiaPackages.stable",
                   position: (168, 40),
                  },
                 ],
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "description",
                 position: (169, 7),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "The NVIDIA X11 derivation to use.\n",
                 position: (170, 1),
                },
               ],
              },
             ),
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "example",
                 position: (172, 7),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "literalExpression",
                position: (172, 17),
               },
               arguments: [
                String {
                 parts: [
                  Raw {
                   content: "config.boot.kernelPackages.nvidiaPackages.legacy_340",
                   position: (172, 36),
                  },
                 ],
                },
               ],
              },
             ),
            ],
            recursive: false,
            position: (165, 44),
           },
          ],
         },
        ),
       ],
       recursive: false,
       position: (38, 13),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "config",
         position: (176, 3),
        },
       ],
      },
      LetIn {
       bindings: [
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "igpuDriver",
            position: (177, 7),
           },
          ],
         },
         IfThenElse {
          predicate: BinaryOperation {
           operator: NotEqualTo,
           operands: [
            PropertyAccess {
             expression: Variable {
              identifier: "pCfg",
              position: (177, 23),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "intelBusId",
                position: (177, 28),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [],
            },
           ],
           position: (177, 39),
          },
          then: String {
           parts: [
            Raw {
             content: "modesetting",
             position: (177, 51),
            },
           ],
          },
          else_: String {
           parts: [
            Raw {
             content: "amdgpu",
             position: (177, 70),
            },
           ],
          },
          position: (177, 20),
         },
        ),
        KeyValue(
         AttributePath {
          attributes: [
           Raw {
            content: "igpuBusId",
            position: (178, 7),
           },
          ],
         },
         IfThenElse {
          predicate: BinaryOperation {
           operator: NotEqualTo,
           operands: [
            PropertyAccess {
             expression: Variable {
              identifier: "pCfg",
              position: (178, 22),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "intelBusId",
                position: (178, 27),
               },
              ],
             },
             default: None,
            },
            String {
             parts: [],
            },
           ],
           position: (178, 38),
          },
          then: PropertyAccess {
           expression: Variable {
            identifier: "pCfg",
            position: (178, 49),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "intelBusId",
              position: (178, 54),
             },
            ],
           },
           default: None,
          },
          else_: PropertyAccess {
           expression: Variable {
            identifier: "pCfg",
            position: (178, 70),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "amdgpuBusId",
              position: (178, 75),
             },
            ],
           },
           default: None,
          },
          position: (178, 19),
         },
        ),
       ],
       target: FunctionApplication {
        function: Variable {
         identifier: "mkIf",
         position: (179, 6),
        },
        arguments: [
         Variable {
          identifier: "enabled",
          position: (179, 11),
         },
         Map {
          bindings: [
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "assertions",
               position: (180, 5),
              },
             ],
            },
            List {
             elements: [
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (182, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   Variable {
                    identifier: "primeEnabled",
                    position: (182, 21),
                   },
                   BinaryOperation {
                    operator: LogicalOr,
                    operands: [
                     BinaryOperation {
                      operator: EqualTo,
                      operands: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "pCfg",
                         position: (182, 37),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "intelBusId",
                           position: (182, 42),
                          },
                         ],
                        },
                        default: None,
                       },
                       String {
                        parts: [],
                       },
                      ],
                      position: (182, 53),
                     },
                     BinaryOperation {
                      operator: EqualTo,
                      operands: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "pCfg",
                         position: (182, 62),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "amdgpuBusId",
                           position: (182, 67),
                          },
                         ],
                        },
                        default: None,
                       },
                       String {
                        parts: [],
                       },
                      ],
                      position: (182, 79),
                     },
                    ],
                    position: (182, 59),
                   },
                  ],
                  position: (182, 34),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (183, 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, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (181, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (189, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   Variable {
                    identifier: "primeEnabled",
                    position: (189, 21),
                   },
                   BinaryOperation {
                    operator: LogicalAnd,
                    operands: [
                     BinaryOperation {
                      operator: NotEqualTo,
                      operands: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "pCfg",
                         position: (189, 37),
                        },
                        attribute_path: AttributePath {
                         attributes: [
                          Raw {
                           content: "nvidiaBusId",
                           position: (189, 42),
                          },
                         ],
                        },
                        default: None,
                       },
                       String {
                        parts: [],
                       },
                      ],
                      position: (189, 54),
                     },
                     BinaryOperation {
                      operator: LogicalOr,
                      operands: [
                       BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "pCfg",
                           position: (189, 64),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "intelBusId",
                             position: (189, 69),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [],
                         },
                        ],
                        position: (189, 80),
                       },
                       BinaryOperation {
                        operator: NotEqualTo,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "pCfg",
                           position: (189, 89),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "amdgpuBusId",
                             position: (189, 94),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [],
                         },
                        ],
                        position: (189, 106),
                       },
                      ],
                      position: (189, 86),
                     },
                    ],
                    position: (189, 60),
                   },
                  ],
                  position: (189, 34),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (190, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "When NVIDIA PRIME is enabled, the GPU bus IDs must configured.\n",
                    position: (191, 1),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (188, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (196, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "offloadCfg",
                     position: (196, 21),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "enable",
                       position: (196, 32),
                      },
                     ],
                    },
                    default: None,
                   },
                   FunctionApplication {
                    function: Variable {
                     identifier: "versionAtLeast",
                     position: (196, 42),
                    },
                    arguments: [
                     PropertyAccess {
                      expression: Variable {
                       identifier: "nvidia_x11",
                       position: (196, 57),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "version",
                         position: (196, 68),
                        },
                       ],
                      },
                      default: None,
                     },
                     String {
                      parts: [
                       Raw {
                        content: "435.21",
                        position: (196, 77),
                       },
                      ],
                     },
                    ],
                   },
                  ],
                  position: (196, 39),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (197, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "NVIDIA PRIME render offload is currently only supported on versions >= 435.21.",
                    position: (197, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (195, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (201, 9),
                   },
                  ],
                 },
                 UnaryOperation {
                  operator: Not,
                  operand: BinaryOperation {
                   operator: LogicalAnd,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "syncCfg",
                      position: (201, 23),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (201, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "offloadCfg",
                      position: (201, 41),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (201, 52),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (201, 38),
                  },
                  position: (201, 21),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (202, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Only one NVIDIA PRIME solution may be used at a time.",
                    position: (202, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (200, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (206, 9),
                   },
                  ],
                 },
                 UnaryOperation {
                  operator: Not,
                  operand: BinaryOperation {
                   operator: LogicalAnd,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "syncCfg",
                      position: (206, 23),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (206, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (206, 41),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "powerManagement",
                        position: (206, 45),
                       },
                       Raw {
                        content: "finegrained",
                        position: (206, 61),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (206, 38),
                  },
                  position: (206, 21),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (207, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Sync precludes powering down the NVIDIA GPU.",
                    position: (207, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (205, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (211, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (211, 21),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "powerManagement",
                       position: (211, 25),
                      },
                      Raw {
                       content: "finegrained",
                       position: (211, 41),
                      },
                     ],
                    },
                    default: None,
                   },
                   PropertyAccess {
                    expression: Variable {
                     identifier: "offloadCfg",
                     position: (211, 56),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "enable",
                       position: (211, 67),
                      },
                     ],
                    },
                    default: None,
                   },
                  ],
                  position: (211, 53),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (212, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Fine-grained power management requires offload to be enabled.",
                    position: (212, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (210, 7),
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "assertion",
                    position: (216, 9),
                   },
                  ],
                 },
                 BinaryOperation {
                  operator: Implication,
                  operands: [
                   PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (216, 21),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "powerManagement",
                       position: (216, 25),
                      },
                      Raw {
                       content: "enable",
                       position: (216, 41),
                      },
                     ],
                    },
                    default: None,
                   },
                   BinaryOperation {
                    operator: LogicalAnd,
                    operands: [
                     FunctionApplication {
                      function: PropertyAccess {
                       expression: Variable {
                        identifier: "builtins",
                        position: (217, 11),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "pathExists",
                          position: (217, 20),
                         },
                        ],
                       },
                       default: None,
                      },
                      arguments: [
                       BinaryOperation {
                        operator: Addition,
                        operands: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "cfg",
                           position: (217, 32),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "package",
                             position: (217, 36),
                            },
                            Raw {
                             content: "out",
                             position: (217, 44),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [
                           Raw {
                            content: "/bin/nvidia-sleep.sh",
                            position: (217, 51),
                           },
                          ],
                         },
                        ],
                        position: (217, 48),
                       },
                      ],
                     },
                     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: "/lib/systemd/system-sleep/nvidia",
                            position: (218, 51),
                           },
                          ],
                         },
                        ],
                        position: (218, 48),
                       },
                      ],
                     },
                    ],
                    position: (217, 74),
                   },
                  ],
                  position: (216, 48),
                 },
                ),
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "message",
                    position: (220, 9),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Raw {
                    content: "Required files for driver based power management don't exist.",
                    position: (220, 20),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (215, 7),
              },
             ],
             position: (180, 18),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (238, 5),
              },
              Raw {
               content: "xserver",
               position: (238, 14),
              },
              Raw {
               content: "useGlamor",
               position: (238, 22),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkDefault",
              position: (238, 34),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "offloadCfg",
                position: (238, 44),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "enable",
                  position: (238, 55),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (240, 5),
              },
              Raw {
               content: "xserver",
               position: (240, 14),
              },
              Raw {
               content: "drivers",
               position: (240, 22),
              },
             ],
            },
            LetIn {
             bindings: [],
             target: BinaryOperation {
              operator: Concatenation,
              operands: [
               FunctionApplication {
                function: Variable {
                 identifier: "optional",
                 position: (241, 8),
                },
                arguments: [
                 Variable {
                  identifier: "primeEnabled",
                  position: (241, 17),
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "name",
                       position: (242, 7),
                      },
                     ],
                    },
                    Variable {
                     identifier: "igpuDriver",
                     position: (242, 14),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "display",
                       position: (243, 7),
                      },
                     ],
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "offloadCfg",
                      position: (243, 17),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "enable",
                        position: (243, 28),
                       },
                      ],
                     },
                     default: None,
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "modules",
                       position: (244, 7),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "optional",
                      position: (244, 17),
                     },
                     arguments: [
                      BinaryOperation {
                       operator: EqualTo,
                       operands: [
                        Variable {
                         identifier: "igpuDriver",
                         position: (244, 27),
                        },
                        String {
                         parts: [
                          Raw {
                           content: "amdgpu",
                           position: (244, 42),
                          },
                         ],
                        },
                       ],
                       position: (244, 38),
                      },
                      List {
                       elements: [
                        PropertyAccess {
                         expression: Variable {
                          identifier: "pkgs",
                          position: (244, 53),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "xorg",
                            position: (244, 58),
                           },
                           Raw {
                            content: "xf86videoamdgpu",
                            position: (244, 63),
                           },
                          ],
                         },
                         default: None,
                        },
                       ],
                       position: (244, 51),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "deviceSection",
                       position: (245, 7),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "BusID \"",
                       position: (246, 1),
                      },
                      Expression {
                       expression: Variable {
                        identifier: "igpuBusId",
                        position: (246, 18),
                       },
                      },
                      Raw {
                       content: "\"\n",
                       position: (246, 28),
                      },
                      Expression {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "optionalString",
                         position: (247, 11),
                        },
                        arguments: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "syncCfg",
                           position: (247, 26),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "enable",
                             position: (247, 34),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [
                           Raw {
                            content: "Option \"AccelMethod\" \"none\"",
                            position: (247, 43),
                           },
                          ],
                         },
                        ],
                       },
                      },
                      Raw {
                       content: "\n",
                       position: (247, 73),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (241, 30),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "singleton",
                 position: (249, 10),
                },
                arguments: [
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "name",
                       position: (250, 7),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "nvidia",
                       position: (250, 15),
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "modules",
                       position: (251, 7),
                      },
                     ],
                    },
                    List {
                     elements: [
                      PropertyAccess {
                       expression: Variable {
                        identifier: "nvidia_x11",
                        position: (251, 19),
                       },
                       attribute_path: AttributePath {
                        attributes: [
                         Raw {
                          content: "bin",
                          position: (251, 30),
                         },
                        ],
                       },
                       default: None,
                      },
                     ],
                     position: (251, 17),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "display",
                       position: (252, 7),
                      },
                     ],
                    },
                    UnaryOperation {
                     operator: Not,
                     operand: PropertyAccess {
                      expression: Variable {
                       identifier: "offloadCfg",
                       position: (252, 18),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "enable",
                         position: (252, 29),
                        },
                       ],
                      },
                      default: None,
                     },
                     position: (252, 17),
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "deviceSection",
                       position: (253, 7),
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "optionalString",
                      position: (253, 23),
                     },
                     arguments: [
                      Variable {
                       identifier: "primeEnabled",
                       position: (253, 38),
                      },
                      String {
                       parts: [
                        Raw {
                         content: "BusID \"",
                         position: (255, 1),
                        },
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "pCfg",
                           position: (255, 20),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "nvidiaBusId",
                             position: (255, 25),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: "\"\n",
                         position: (255, 37),
                        },
                        Expression {
                         expression: FunctionApplication {
                          function: Variable {
                           identifier: "optionalString",
                           position: (256, 13),
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "syncCfg",
                             position: (256, 28),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "allowExternalGpu",
                               position: (256, 36),
                              },
                             ],
                            },
                            default: None,
                           },
                           String {
                            parts: [
                             Raw {
                              content: "Option \"AllowExternalGpus\"",
                              position: (256, 54),
                             },
                            ],
                           },
                          ],
                         },
                        },
                        Raw {
                         content: "\n",
                         position: (256, 84),
                        },
                        Expression {
                         expression: FunctionApplication {
                          function: Variable {
                           identifier: "optionalString",
                           position: (257, 13),
                          },
                          arguments: [
                           PropertyAccess {
                            expression: Variable {
                             identifier: "cfg",
                             position: (257, 28),
                            },
                            attribute_path: AttributePath {
                             attributes: [
                              Raw {
                               content: "powerManagement",
                               position: (257, 32),
                              },
                              Raw {
                               content: "finegrained",
                               position: (257, 48),
                              },
                             ],
                            },
                            default: None,
                           },
                           String {
                            parts: [
                             Raw {
                              content: "Option \"NVreg_DynamicPowerManagement=0x02\"",
                              position: (257, 61),
                             },
                            ],
                           },
                          ],
                         },
                        },
                        Raw {
                         content: "\n",
                         position: (257, 107),
                        },
                       ],
                      },
                     ],
                    },
                   ),
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "screenSection",
                       position: (259, 7),
                      },
                     ],
                    },
                    String {
                     parts: [
                      Raw {
                       content: "Option \"RandRRotation\" \"on\"\n",
                       position: (261, 1),
                      },
                      Expression {
                       expression: FunctionApplication {
                        function: Variable {
                         identifier: "optionalString",
                         position: (262, 13),
                        },
                        arguments: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "syncCfg",
                           position: (262, 28),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "enable",
                             position: (262, 36),
                            },
                           ],
                          },
                          default: None,
                         },
                         String {
                          parts: [
                           Raw {
                            content: "Option \"AllowEmptyInitialConfiguration\"",
                            position: (262, 44),
                           },
                          ],
                         },
                        ],
                       },
                      },
                      Raw {
                       content: "\n",
                       position: (262, 87),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (249, 20),
                 },
                ],
               },
              ],
              position: (249, 7),
             },
             position: (240, 32),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (266, 5),
              },
              Raw {
               content: "xserver",
               position: (266, 14),
              },
              Raw {
               content: "serverLayoutSection",
               position: (266, 22),
              },
             ],
            },
            BinaryOperation {
             operator: Addition,
             operands: [
              FunctionApplication {
               function: Variable {
                identifier: "optionalString",
                position: (266, 44),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "syncCfg",
                  position: (266, 59),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "enable",
                    position: (266, 67),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "Inactive \"Device-",
                   position: (267, 1),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "igpuDriver",
                    position: (267, 26),
                   },
                  },
                  Raw {
                   content: "[0]\"\n",
                   position: (267, 37),
                  },
                 ],
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "optionalString",
                position: (268, 10),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "offloadCfg",
                  position: (268, 25),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "enable",
                    position: (268, 36),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "Option \"AllowNVIDIAGPUScreens\"\n",
                   position: (269, 1),
                  },
                 ],
                },
               ],
              },
             ],
             position: (268, 8),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (272, 5),
              },
              Raw {
               content: "xserver",
               position: (272, 14),
              },
              Raw {
               content: "displayManager",
               position: (272, 22),
              },
              Raw {
               content: "setupCommands",
               position: (272, 37),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "optionalString",
              position: (272, 53),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "syncCfg",
                position: (272, 68),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "enable",
                  position: (272, 76),
                 },
                ],
               },
               default: None,
              },
              String {
               parts: [
                Raw {
                 content: "# Added by nvidia configuration module for Optimus/PRIME.\n",
                 position: (273, 1),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (274, 9),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "xorg",
                     position: (274, 14),
                    },
                    Raw {
                     content: "xrandr",
                     position: (274, 19),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/xrandr --setprovideroutputsource ",
                 position: (274, 26),
                },
                Expression {
                 expression: Variable {
                  identifier: "igpuDriver",
                  position: (274, 66),
                 },
                },
                Raw {
                 content: " NVIDIA-0\n",
                 position: (274, 77),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (275, 9),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "xorg",
                     position: (275, 14),
                    },
                    Raw {
                     content: "xrandr",
                     position: (275, 19),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Raw {
                 content: "/bin/xrandr --auto\n",
                 position: (275, 26),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (278, 5),
              },
              Raw {
               content: "etc",
               position: (278, 17),
              },
              Expression {
               expression: String {
                parts: [
                 Raw {
                  content: "nvidia/nvidia-application-profiles-rc",
                  position: (278, 22),
                 },
                ],
               },
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkIf",
              position: (278, 63),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (278, 68),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "useProfiles",
                  position: (278, 79),
                 },
                ],
               },
               default: None,
              },
              Map {
               bindings: [
                KeyValue(
                 AttributePath {
                  attributes: [
                   Raw {
                    content: "source",
                    position: (279, 7),
                   },
                  ],
                 },
                 String {
                  parts: [
                   Expression {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (279, 19),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "bin",
                        position: (279, 30),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/share/nvidia/nvidia-application-profiles-rc",
                    position: (279, 34),
                   },
                  ],
                 },
                ),
               ],
               recursive: false,
               position: (278, 91),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (283, 5),
              },
              Raw {
               content: "etc",
               position: (283, 17),
              },
              Expression {
               expression: String {
                parts: [
                 Raw {
                  content: "egl/egl_external_platform.d",
                  position: (283, 22),
                 },
                ],
               },
              },
              Raw {
               content: "source",
               position: (283, 51),
              },
             ],
            },
            String {
             parts: [
              Raw {
               content: "/run/opengl-driver/share/egl/egl_external_platform.d/",
               position: (284, 8),
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "hardware",
               position: (286, 5),
              },
              Raw {
               content: "opengl",
               position: (286, 14),
              },
              Raw {
               content: "package",
               position: (286, 21),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkIf",
              position: (286, 31),
             },
             arguments: [
              UnaryOperation {
               operator: Not,
               operand: PropertyAccess {
                expression: Variable {
                 identifier: "offloadCfg",
                 position: (286, 38),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "enable",
                   position: (286, 49),
                  },
                 ],
                },
                default: None,
               },
               position: (286, 37),
              },
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (286, 57),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "out",
                  position: (286, 68),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "hardware",
               position: (287, 5),
              },
              Raw {
               content: "opengl",
               position: (287, 14),
              },
              Raw {
               content: "package32",
               position: (287, 21),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkIf",
              position: (287, 33),
             },
             arguments: [
              UnaryOperation {
               operator: Not,
               operand: PropertyAccess {
                expression: Variable {
                 identifier: "offloadCfg",
                 position: (287, 40),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "enable",
                   position: (287, 51),
                  },
                 ],
                },
                default: None,
               },
               position: (287, 39),
              },
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (287, 59),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "lib32",
                  position: (287, 70),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "hardware",
               position: (288, 5),
              },
              Raw {
               content: "opengl",
               position: (288, 14),
              },
              Raw {
               content: "extraPackages",
               position: (288, 21),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "optional",
              position: (288, 37),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "offloadCfg",
                position: (288, 46),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "enable",
                  position: (288, 57),
                 },
                ],
               },
               default: None,
              },
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (288, 64),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "out",
                  position: (288, 75),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "hardware",
               position: (289, 5),
              },
              Raw {
               content: "opengl",
               position: (289, 14),
              },
              Raw {
               content: "extraPackages32",
               position: (289, 21),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "optional",
              position: (289, 39),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "offloadCfg",
                position: (289, 48),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "enable",
                  position: (289, 59),
                 },
                ],
               },
               default: None,
              },
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (289, 66),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "lib32",
                  position: (289, 77),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "environment",
               position: (291, 5),
              },
              Raw {
               content: "systemPackages",
               position: (291, 17),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              List {
               elements: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "nvidia_x11",
                  position: (291, 36),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "bin",
                    position: (291, 47),
                   },
                  ],
                 },
                 default: None,
                },
               ],
               position: (291, 34),
              },
              BinaryOperation {
               operator: Concatenation,
               operands: [
                FunctionApplication {
                 function: Variable {
                  identifier: "optionals",
                  position: (292, 10),
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (292, 20),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "nvidiaSettings",
                      position: (292, 24),
                     },
                    ],
                   },
                   default: None,
                  },
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (292, 41),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "settings",
                        position: (292, 52),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (292, 39),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "optionals",
                  position: (293, 10),
                 },
                 arguments: [
                  Variable {
                   identifier: "nvidiaPersistencedEnabled",
                   position: (293, 20),
                  },
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (293, 48),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "persistenced",
                        position: (293, 59),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (293, 46),
                  },
                 ],
                },
               ],
               position: (293, 7),
              },
             ],
             position: (292, 7),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (295, 5),
              },
              Raw {
               content: "packages",
               position: (295, 13),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "optional",
              position: (295, 24),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (295, 33),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "powerManagement",
                  position: (295, 37),
                 },
                 Raw {
                  content: "enable",
                  position: (295, 53),
                 },
                ],
               },
               default: None,
              },
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (295, 60),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "out",
                  position: (295, 71),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (297, 5),
              },
              Raw {
               content: "services",
               position: (297, 13),
              },
             ],
            },
            LetIn {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "baseNvidiaService",
                  position: (298, 7),
                 },
                ],
               },
               Function {
                argument: Some(
                 "state",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "description",
                      position: (299, 9),
                     },
                    ],
                   },
                   String {
                    parts: [
                     Raw {
                      content: "NVIDIA system ",
                      position: (299, 24),
                     },
                     Expression {
                      expression: Variable {
                       identifier: "state",
                       position: (299, 40),
                      },
                     },
                     Raw {
                      content: " actions",
                      position: (299, 46),
                     },
                    ],
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "path",
                      position: (301, 9),
                     },
                    ],
                   },
                   With {
                    expression: Variable {
                     identifier: "pkgs",
                     position: (301, 21),
                    },
                    target: List {
                     elements: [
                      Variable {
                       identifier: "kbd",
                       position: (301, 29),
                      },
                     ],
                     position: (301, 27),
                    },
                    position: (301, 16),
                   },
                  ),
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "serviceConfig",
                      position: (302, 9),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "Type",
                         position: (303, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "oneshot",
                         position: (303, 19),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "ExecStart",
                         position: (304, 11),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Expression {
                         expression: PropertyAccess {
                          expression: Variable {
                           identifier: "nvidia_x11",
                           position: (304, 26),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "out",
                             position: (304, 37),
                            },
                           ],
                          },
                          default: None,
                         },
                        },
                        Raw {
                         content: "/bin/nvidia-sleep.sh '",
                         position: (304, 41),
                        },
                        Expression {
                         expression: Variable {
                          identifier: "state",
                          position: (304, 65),
                         },
                        },
                        Raw {
                         content: "'",
                         position: (304, 71),
                        },
                       ],
                      },
                     ),
                    ],
                    recursive: false,
                    position: (302, 25),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (298, 34),
                },
                position: (298, 27),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "nvidiaService",
                  position: (308, 7),
                 },
                ],
               },
               Function {
                argument: Some(
                 "sleepState",
                ),
                arguments: FunctionArguments {
                 arguments: [],
                 ellipsis: false,
                },
                definition: BinaryOperation {
                 operator: Update,
                 operands: [
                  FunctionApplication {
                   function: Variable {
                    identifier: "baseNvidiaService",
                    position: (308, 36),
                   },
                   arguments: [
                    Variable {
                     identifier: "sleepState",
                     position: (308, 54),
                    },
                   ],
                  },
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "before",
                        position: (309, 9),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "systemd-",
                          position: (309, 21),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "sleepState",
                           position: (309, 31),
                          },
                         },
                         Raw {
                          content: ".service",
                          position: (309, 42),
                         },
                        ],
                       },
                      ],
                      position: (309, 18),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "requiredBy",
                        position: (310, 9),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "systemd-",
                          position: (310, 25),
                         },
                         Expression {
                          expression: Variable {
                           identifier: "sleepState",
                           position: (310, 35),
                          },
                         },
                         Raw {
                          content: ".service",
                          position: (310, 46),
                         },
                        ],
                       },
                      ],
                      position: (310, 22),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (308, 69),
                  },
                 ],
                 position: (308, 66),
                },
                position: (308, 23),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "services",
                  position: (313, 7),
                 },
                ],
               },
               BinaryOperation {
                operator: Update,
                operands: [
                 FunctionApplication {
                  function: PropertyAccess {
                   expression: Variable {
                    identifier: "builtins",
                    position: (313, 19),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "listToAttrs",
                      position: (313, 28),
                     },
                    ],
                   },
                   default: None,
                  },
                  arguments: [
                   FunctionApplication {
                    function: Variable {
                     identifier: "map",
                     position: (313, 41),
                    },
                    arguments: [
                     Function {
                      argument: Some(
                       "t",
                      ),
                      arguments: FunctionArguments {
                       arguments: [],
                       ellipsis: false,
                      },
                      definition: FunctionApplication {
                       function: Variable {
                        identifier: "nameValuePair",
                        position: (313, 49),
                       },
                       arguments: [
                        String {
                         parts: [
                          Raw {
                           content: "nvidia-",
                           position: (313, 64),
                          },
                          Expression {
                           expression: Variable {
                            identifier: "t",
                            position: (313, 73),
                           },
                          },
                         ],
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "nvidiaService",
                          position: (313, 78),
                         },
                         arguments: [
                          Variable {
                           identifier: "t",
                           position: (313, 92),
                          },
                         ],
                        },
                       ],
                      },
                      position: (313, 46),
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "hibernate",
                          position: (313, 98),
                         },
                        ],
                       },
                       String {
                        parts: [
                         Raw {
                          content: "suspend",
                          position: (313, 110),
                         },
                        ],
                       },
                      ],
                      position: (313, 96),
                     },
                    ],
                   },
                  ],
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Raw {
                       content: "nvidia-resume",
                       position: (315, 11),
                      },
                     ],
                    },
                    BinaryOperation {
                     operator: Update,
                     operands: [
                      FunctionApplication {
                       function: Variable {
                        identifier: "baseNvidiaService",
                        position: (315, 28),
                       },
                       arguments: [
                        String {
                         parts: [
                          Raw {
                           content: "resume",
                           position: (315, 47),
                          },
                         ],
                        },
                       ],
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "after",
                            position: (316, 13),
                           },
                          ],
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "systemd-suspend.service",
                              position: (316, 24),
                             },
                            ],
                           },
                           String {
                            parts: [
                             Raw {
                              content: "systemd-hibernate.service",
                              position: (316, 50),
                             },
                            ],
                           },
                          ],
                          position: (316, 21),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "requiredBy",
                            position: (317, 13),
                           },
                          ],
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "systemd-suspend.service",
                              position: (317, 29),
                             },
                            ],
                           },
                           String {
                            parts: [
                             Raw {
                              content: "systemd-hibernate.service",
                              position: (317, 55),
                             },
                            ],
                           },
                          ],
                          position: (317, 26),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (315, 59),
                      },
                     ],
                     position: (315, 56),
                    },
                   ),
                  ],
                  recursive: false,
                  position: (314, 12),
                 },
                ],
                position: (314, 9),
               },
              ),
             ],
             target: BinaryOperation {
              operator: Update,
              operands: [
               FunctionApplication {
                function: Variable {
                 identifier: "optionalAttrs",
                 position: (320, 8),
                },
                arguments: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (320, 22),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "powerManagement",
                     position: (320, 26),
                    },
                    Raw {
                     content: "enable",
                     position: (320, 42),
                    },
                   ],
                  },
                  default: None,
                 },
                 Variable {
                  identifier: "services",
                  position: (320, 49),
                 },
                ],
               },
               FunctionApplication {
                function: Variable {
                 identifier: "optionalAttrs",
                 position: (321, 10),
                },
                arguments: [
                 Variable {
                  identifier: "nvidiaPersistencedEnabled",
                  position: (321, 24),
                 },
                 Map {
                  bindings: [
                   KeyValue(
                    AttributePath {
                     attributes: [
                      Expression {
                       expression: String {
                        parts: [
                         Raw {
                          content: "nvidia-persistenced",
                          position: (322, 10),
                         },
                        ],
                       },
                      },
                     ],
                    },
                    FunctionApplication {
                     function: Variable {
                      identifier: "mkIf",
                      position: (322, 33),
                     },
                     arguments: [
                      Variable {
                       identifier: "nvidiaPersistencedEnabled",
                       position: (322, 38),
                      },
                      Map {
                       bindings: [
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "description",
                            position: (323, 11),
                           },
                          ],
                         },
                         String {
                          parts: [
                           Raw {
                            content: "NVIDIA Persistence Daemon",
                            position: (323, 26),
                           },
                          ],
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "wantedBy",
                            position: (324, 11),
                           },
                          ],
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "multi-user.target",
                              position: (324, 25),
                             },
                            ],
                           },
                          ],
                          position: (324, 22),
                         },
                        ),
                        KeyValue(
                         AttributePath {
                          attributes: [
                           Raw {
                            content: "serviceConfig",
                            position: (325, 11),
                           },
                          ],
                         },
                         Map {
                          bindings: [
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "Type",
                               position: (326, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Raw {
                               content: "forking",
                               position: (326, 21),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "Restart",
                               position: (327, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Raw {
                               content: "always",
                               position: (327, 24),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "PIDFile",
                               position: (328, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Raw {
                               content: "/var/run/nvidia-persistenced/nvidia-persistenced.pid",
                               position: (328, 24),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "ExecStart",
                               position: (329, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Expression {
                               expression: PropertyAccess {
                                expression: Variable {
                                 identifier: "nvidia_x11",
                                 position: (329, 28),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "persistenced",
                                   position: (329, 39),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              },
                              Raw {
                               content: "/bin/nvidia-persistenced --verbose",
                               position: (329, 52),
                              },
                             ],
                            },
                           ),
                           KeyValue(
                            AttributePath {
                             attributes: [
                              Raw {
                               content: "ExecStopPost",
                               position: (330, 13),
                              },
                             ],
                            },
                            String {
                             parts: [
                              Expression {
                               expression: PropertyAccess {
                                expression: Variable {
                                 identifier: "pkgs",
                                 position: (330, 31),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "coreutils",
                                   position: (330, 36),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              },
                              Raw {
                               content: "/bin/rm -rf /var/run/nvidia-persistenced",
                               position: (330, 46),
                              },
                             ],
                            },
                           ),
                          ],
                          recursive: false,
                          position: (325, 27),
                         },
                        ),
                       ],
                       recursive: false,
                       position: (322, 64),
                      },
                     ],
                    },
                   ),
                  ],
                  recursive: false,
                  position: (321, 50),
                 },
                ],
               },
              ],
              position: (321, 7),
             },
             position: (297, 24),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "systemd",
               position: (335, 5),
              },
              Raw {
               content: "tmpfiles",
               position: (335, 13),
              },
              Raw {
               content: "rules",
               position: (335, 22),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (335, 30),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (335, 39),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "virtualisation",
                    position: (335, 46),
                   },
                   Raw {
                    content: "docker",
                    position: (335, 61),
                   },
                   Raw {
                    content: "enableNvidia",
                    position: (335, 68),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "L+ /run/nvidia-docker/bin - - - - ",
                   position: (336, 10),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "nvidia_x11",
                     position: (336, 46),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "bin",
                       position: (336, 57),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/origBin",
                   position: (336, 61),
                  },
                 ],
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (337, 10),
               },
               arguments: [
                BinaryOperation {
                 operator: LogicalAnd,
                 operands: [
                  BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "nvidia_x11",
                      position: (337, 20),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "persistenced",
                        position: (337, 31),
                       },
                      ],
                     },
                     default: None,
                    },
                    Variable {
                     identifier: "null",
                     position: (337, 47),
                    },
                   ],
                   position: (337, 44),
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "config",
                    position: (337, 55),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "virtualisation",
                      position: (337, 62),
                     },
                     Raw {
                      content: "docker",
                      position: (337, 77),
                     },
                     Raw {
                      content: "enableNvidia",
                      position: (337, 84),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                 position: (337, 52),
                },
                String {
                 parts: [
                  Raw {
                   content: "L+ /run/nvidia-docker/extras/bin/nvidia-persistenced - - - - ",
                   position: (338, 10),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "nvidia_x11",
                     position: (338, 73),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "persistenced",
                       position: (338, 84),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/origBin/nvidia-persistenced",
                   position: (338, 97),
                  },
                 ],
                },
               ],
              },
             ],
             position: (337, 7),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (340, 5),
              },
              Raw {
               content: "extraModulePackages",
               position: (340, 10),
              },
             ],
            },
            List {
             elements: [
              PropertyAccess {
               expression: Variable {
                identifier: "nvidia_x11",
                position: (340, 34),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "bin",
                  position: (340, 45),
                 },
                ],
               },
               default: None,
              },
             ],
             position: (340, 32),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (343, 5),
              },
              Raw {
               content: "kernelModules",
               position: (343, 10),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              List {
               elements: [
                String {
                 parts: [
                  Raw {
                   content: "nvidia-uvm",
                   position: (343, 29),
                  },
                 ],
                },
               ],
               position: (343, 26),
              },
              FunctionApplication {
               function: Variable {
                identifier: "optionals",
                position: (344, 7),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (344, 17),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "services",
                    position: (344, 24),
                   },
                   Raw {
                    content: "xserver",
                    position: (344, 33),
                   },
                   Raw {
                    content: "enable",
                    position: (344, 41),
                   },
                  ],
                 },
                 default: None,
                },
                List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "nvidia",
                     position: (344, 51),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "nvidia_modeset",
                     position: (344, 60),
                    },
                   ],
                  },
                  String {
                   parts: [
                    Raw {
                     content: "nvidia_drm",
                     position: (344, 77),
                    },
                   ],
                  },
                 ],
                 position: (344, 48),
                },
               ],
              },
             ],
             position: (343, 43),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (347, 5),
              },
              Raw {
               content: "kernelParams",
               position: (347, 10),
              },
             ],
            },
            BinaryOperation {
             operator: Concatenation,
             operands: [
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (347, 25),
               },
               arguments: [
                BinaryOperation {
                 operator: LogicalOr,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "offloadCfg",
                    position: (347, 35),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "enable",
                      position: (347, 46),
                     },
                    ],
                   },
                   default: None,
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (347, 56),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "modesetting",
                      position: (347, 60),
                     },
                     Raw {
                      content: "enable",
                      position: (347, 72),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                 position: (347, 53),
                },
                String {
                 parts: [
                  Raw {
                   content: "nvidia-drm.modeset=1",
                   position: (347, 81),
                  },
                 ],
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "optional",
                position: (348, 10),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (348, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "powerManagement",
                    position: (348, 23),
                   },
                   Raw {
                    content: "enable",
                    position: (348, 39),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "nvidia.NVreg_PreserveVideoMemoryAllocations=1",
                   position: (348, 47),
                  },
                 ],
                },
               ],
              },
             ],
             position: (348, 7),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (350, 5),
              },
              Raw {
               content: "udev",
               position: (350, 14),
              },
              Raw {
               content: "extraRules",
               position: (350, 19),
              },
             ],
            },
            BinaryOperation {
             operator: Addition,
             operands: [
              String {
               parts: [
                Raw {
                 content: "# Create /dev/nvidia-uvm when the nvidia-uvm module is loaded.\nKERNEL==\"nvidia\", RUN+=\"",
                 position: (352, 1),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (353, 35),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (353, 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+=\"",
                 position: (353, 53),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (354, 43),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (354, 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+=\"",
                 position: (354, 61),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (355, 71),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (355, 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+=\"",
                 position: (355, 89),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (356, 39),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (356, 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+=\"",
                 position: (356, 57),
                },
                Expression {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (357, 39),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "runtimeShell",
                     position: (357, 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: (357, 57),
                },
               ],
              },
              FunctionApplication {
               function: Variable {
                identifier: "optionalString",
                position: (358, 12),
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (358, 27),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "powerManagement",
                    position: (358, 31),
                   },
                   Raw {
                    content: "finegrained",
                    position: (358, 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: (359, 1),
                  },
                 ],
                },
               ],
              },
             ],
             position: (358, 10),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (377, 5),
              },
              Raw {
               content: "extraModprobeConfig",
               position: (377, 10),
              },
             ],
            },
            FunctionApplication {
             function: Variable {
              identifier: "mkIf",
              position: (377, 32),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "cfg",
                position: (377, 37),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "powerManagement",
                  position: (377, 41),
                 },
                 Raw {
                  content: "finegrained",
                  position: (377, 57),
                 },
                ],
               },
               default: None,
              },
              String {
               parts: [
                Raw {
                 content: "options nvidia \"NVreg_DynamicPowerManagement=0x02\"\n",
                 position: (378, 1),
                },
               ],
              },
             ],
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "boot",
               position: (381, 5),
              },
              Raw {
               content: "blacklistedKernelModules",
               position: (381, 10),
              },
             ],
            },
            List {
             elements: [
              String {
               parts: [
                Raw {
                 content: "nouveau",
                 position: (381, 40),
                },
               ],
              },
              String {
               parts: [
                Raw {
                 content: "nvidiafb",
                 position: (381, 50),
                },
               ],
              },
             ],
             position: (381, 37),
            },
           ),
           KeyValue(
            AttributePath {
             attributes: [
              Raw {
               content: "services",
               position: (383, 5),
              },
              Raw {
               content: "acpid",
               position: (383, 14),
              },
              Raw {
               content: "enable",
               position: (383, 20),
              },
             ],
            },
            Variable {
             identifier: "true",
             position: (383, 29),
            },
           ),
          ],
          recursive: false,
          position: (179, 19),
         },
        ],
       },
       position: (176, 12),
      },
     ),
    ],
    recursive: false,
    position: (29, 1),
   },
   position: (7, 1),
  },
  position: (5, 1),
 },
 position: (3, 1),
}