Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "system", default: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 1, column: 12, }, end: Position { line: 1, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "currentSystem", span: Span { start: Position { line: 1, column: 21, }, end: Position { line: 1, column: 34, }, }, }, ), ], default: None, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "config", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 2, column: 12, }, end: Position { line: 2, column: 14, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "networkExpr", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nodes", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 8, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 7, column: 11, }, end: Position { line: 7, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrs", span: Span { start: Position { line: 7, column: 20, }, end: Position { line: 7, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "vm", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "module", }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_file", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 10, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "networkExpr", span: Span { start: Position { line: 8, column: 16, }, end: Position { line: 8, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: "@node-", span: Span { start: Position { line: 8, column: 14, }, end: Position { line: 8, column: 34, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "vm", span: Span { start: Position { line: 8, column: 36, }, end: Position { line: 8, column: 38, }, }, }, ), }, ), ], span: Span { start: Position { line: 8, column: 13, }, end: Position { line: 8, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 12, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "module", span: Span { start: Position { line: 9, column: 17, }, end: Position { line: 9, column: 23, }, }, }, ), ], span: Span { start: Position { line: 9, column: 15, }, end: Position { line: 9, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 7, column: 42, }, end: Position { line: 10, column: 4, }, }, }, ), span: Span { start: Position { line: 7, column: 34, }, end: Position { line: 10, column: 4, }, }, }, ), span: Span { start: Position { line: 7, column: 30, }, end: Position { line: 10, column: 4, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 13, }, }, }, ), arguments: [ Identifier( Identifier { id: "networkExpr", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 25, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 7, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 12, column: 10, }, end: Position { line: 12, column: 16, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../../..", span: Span { start: Position { line: 12, column: 17, }, end: Position { line: 12, column: 31, }, }, }, ), ], span: Span { start: Position { line: 12, column: 17, }, end: Position { line: 12, column: 31, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 12, column: 42, }, end: Position { line: 12, column: 48, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 12, column: 49, }, end: Position { line: 12, column: 55, }, }, }, ), ], span: Span { start: Position { line: 12, column: 33, }, end: Position { line: 12, column: 56, }, }, }, ), ], span: Span { start: Position { line: 12, column: 32, }, end: Position { line: 12, column: 58, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "testing", span: Span { start: Position { line: 14, column: 3, }, end: Position { line: 14, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 14, column: 19, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../../lib/testing-python.nix", span: Span { start: Position { line: 14, column: 20, }, end: Position { line: 14, column: 54, }, }, }, ), ], span: Span { start: Position { line: 14, column: 20, }, end: Position { line: 14, column: 54, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 15, column: 13, }, end: Position { line: 15, column: 19, }, }, }, ), Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 15, column: 20, }, end: Position { line: 15, column: 24, }, }, }, ), ], span: Span { start: Position { line: 14, column: 56, }, end: Position { line: 15, column: 25, }, }, }, ), ], span: Span { start: Position { line: 14, column: 55, }, end: Position { line: 16, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "interactiveDriver", span: Span { start: Position { line: 18, column: 3, }, end: Position { line: 18, column: 20, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "testing", span: Span { start: Position { line: 18, column: 24, }, end: Position { line: 18, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "makeTest", span: Span { start: Position { line: 18, column: 32, }, end: Position { line: 18, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "nodes", span: Span { start: Position { line: 18, column: 51, }, end: Position { line: 18, column: 56, }, }, }, ), ], span: Span { start: Position { line: 18, column: 42, }, end: Position { line: 18, column: 57, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 18, column: 58, }, end: Position { line: 18, column: 62, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "network", span: Span { start: Position { line: 18, column: 66, }, end: Position { line: 18, column: 73, }, }, }, ), ], span: Span { start: Position { line: 18, column: 65, }, end: Position { line: 18, column: 74, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "testScript", span: Span { start: Position { line: 18, column: 76, }, end: Position { line: 18, column: 86, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "start_all(); join_all();", span: Span { start: Position { line: 18, column: 90, }, end: Position { line: 18, column: 114, }, }, }, ), ], span: Span { start: Position { line: 18, column: 89, }, end: Position { line: 18, column: 115, }, }, }, ), }, ), ], span: Span { start: Position { line: 18, column: 41, }, end: Position { line: 18, column: 118, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "test", span: Span { start: Position { line: 18, column: 120, }, end: Position { line: 18, column: 124, }, }, }, ), Raw( PartRaw { content: "driverInteractive", span: Span { start: Position { line: 18, column: 125, }, end: Position { line: 18, column: 142, }, }, }, ), ], default: None, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 22, column: 5, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runCommand", span: Span { start: Position { line: 22, column: 6, }, end: Position { line: 22, column: 16, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "nixos-build-vms", span: Span { start: Position { line: 22, column: 18, }, end: Position { line: 22, column: 33, }, }, }, ), ], span: Span { start: Position { line: 22, column: 17, }, end: Position { line: 22, column: 34, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nativeBuildInputs", span: Span { start: Position { line: 22, column: 37, }, end: Position { line: 22, column: 54, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 22, column: 59, }, end: Position { line: 22, column: 63, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "makeWrapper", span: Span { start: Position { line: 22, column: 64, }, end: Position { line: 22, column: 75, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 22, column: 57, }, end: Position { line: 22, column: 77, }, }, }, ), }, ), ], span: Span { start: Position { line: 22, column: 35, }, end: Position { line: 22, column: 80, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p $out/bin\nln -s ", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 24, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "interactiveDriver", span: Span { start: Position { line: 24, column: 11, }, end: Position { line: 24, column: 28, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/nixos-test-driver $out/bin/nixos-test-driver\nln -s ", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 25, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "interactiveDriver", span: Span { start: Position { line: 25, column: 11, }, end: Position { line: 25, column: 28, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/nixos-test-driver $out/bin/nixos-run-vms\nwrapProgram $out/bin/nixos-test-driver \\\n --add-flags \"--interactive\"\nwrapProgram $out/bin/nixos-run-vms \\\n --set testScript \"", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 29, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 29, column: 26, }, end: Position { line: 29, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 29, column: 31, }, end: Position { line: 29, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "start-all", span: Span { start: Position { line: 29, column: 42, }, end: Position { line: 29, column: 51, }, }, }, ), ], span: Span { start: Position { line: 29, column: 41, }, end: Position { line: 29, column: 52, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "start_all(); join_all();", span: Span { start: Position { line: 29, column: 54, }, end: Position { line: 29, column: 78, }, }, }, ), ], span: Span { start: Position { line: 29, column: 53, }, end: Position { line: 29, column: 79, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\" \\\n --add-flags \"--no-interactive\"\n", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 31, column: 1, }, }, }, ), ], span: Span { start: Position { line: 22, column: 81, }, end: Position { line: 31, column: 3, }, }, }, ), ], }, ), span: Span { start: Position { line: 6, column: 1, }, end: Position { line: 31, column: 3, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 31, column: 3, }, }, }, )