Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "options", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 12, }, end: Position { line: 3, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "mkIf", span: Span { start: Position { line: 3, column: 17, }, end: Position { line: 3, column: 21, }, }, }, ), Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 3, column: 22, }, end: Position { line: 3, column: 30, }, }, }, ), Raw( PartRaw { content: "types", span: Span { start: Position { line: 3, column: 31, }, end: Position { line: 3, column: 36, }, }, }, ), ], span: Span { start: Position { line: 2, column: 4, }, end: Position { line: 3, column: 37, }, }, }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "machine", span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 12, column: 15, }, end: Position { line: 12, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "internal", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 13, column: 18, }, end: Position { line: 13, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 14, column: 14, }, end: Position { line: 14, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "raw", span: Span { start: Position { line: 14, column: 20, }, end: Position { line: 14, column: 23, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 12, column: 24, }, end: Position { line: 15, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 13, }, end: Position { line: 16, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 18, column: 3, }, end: Position { line: 18, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nodes", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 19, column: 13, }, end: Position { line: 19, column: 17, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "options", span: Span { start: Position { line: 19, column: 18, }, end: Position { line: 19, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "machine", span: Span { start: Position { line: 19, column: 26, }, end: Position { line: 19, column: 33, }, }, }, ), Raw( PartRaw { content: "isDefined", span: Span { start: Position { line: 19, column: 34, }, end: Position { line: 19, column: 43, }, }, }, ), ], default: None, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "warn", span: Span { start: Position { line: 20, column: 11, }, end: Position { line: 20, column: 15, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "In test `", span: Span { start: Position { line: 21, column: 10, }, end: Position { line: 21, column: 33, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 21, column: 21, }, end: Position { line: 21, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 21, column: 28, }, end: Position { line: 21, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "': The `machine' attribute in NixOS tests (pkgs.nixosTest / make-test-python.nix / testing-python.nix / makeTest) is deprecated. Please set the equivalent `nodes.machine'.", span: Span { start: Position { line: 21, column: 10, }, end: Position { line: 21, column: 204, }, }, }, ), ], span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 205, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "config", span: Span { start: Position { line: 22, column: 20, }, end: Position { line: 22, column: 26, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "machine", span: Span { start: Position { line: 22, column: 28, }, end: Position { line: 22, column: 35, }, }, }, ), ], span: Span { start: Position { line: 22, column: 10, }, end: Position { line: 22, column: 36, }, }, }, ), ], span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 38, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 12, }, end: Position { line: 24, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 25, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 25, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 25, column: 2, }, }, }, )