Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "system", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: Some( FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 2, column: 10, }, end: Position { line: 2, column: 16, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../..", span: Span { start: Position { line: 2, column: 17, }, end: Position { line: 2, column: 22, }, }, }, ), ], span: Span { start: Position { line: 2, column: 17, }, end: Position { line: 2, column: 22, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 2, column: 33, }, end: Position { line: 2, column: 39, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 2, column: 40, }, end: Position { line: 2, column: 46, }, }, }, ), ], span: Span { start: Position { line: 2, column: 24, }, end: Position { line: 2, column: 47, }, }, }, ), ], span: Span { start: Position { line: 2, column: 23, }, end: Position { line: 2, column: 49, }, }, }, ), ], }, ), ), }, FunctionHeadDestructuredArgument { identifier: "minimal", default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 4, column: 13, }, end: Position { line: 4, column: 18, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "config", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 6, column: 12, }, end: Position { line: 6, column: 15, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "specialArgs", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 8, column: 17, }, end: Position { line: 8, column: 20, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "extraConfigurations", default: Some( List( List { elements: [], span: Span { start: Position { line: 10, column: 25, }, end: Position { line: 10, column: 28, }, }, }, ), ), }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 13, column: 6, }, end: Position { line: 13, column: 10, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixos-lib", span: Span { start: Position { line: 16, column: 3, }, end: Position { line: 16, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 16, column: 15, }, end: Position { line: 16, column: 21, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "./default.nix", span: Span { start: Position { line: 16, column: 22, }, end: Position { line: 16, column: 35, }, }, }, ), ], span: Span { start: Position { line: 16, column: 22, }, end: Position { line: 16, column: 35, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 16, column: 47, }, end: Position { line: 16, column: 51, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 16, column: 53, }, end: Position { line: 16, column: 56, }, }, }, ), ], span: Span { start: Position { line: 16, column: 37, }, end: Position { line: 16, column: 57, }, }, }, ), ], span: Span { start: Position { line: 16, column: 36, }, end: Position { line: 16, column: 59, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: true, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 21, column: 11, }, end: Position { line: 21, column: 15, }, }, }, ), ], span: Span { start: Position { line: 19, column: 6, }, end: Position { line: 21, column: 16, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "evalTest", span: Span { start: Position { line: 23, column: 3, }, end: Position { line: 23, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "module", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "nixos-lib", span: Span { start: Position { line: 23, column: 22, }, end: Position { line: 23, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "evalTest", span: Span { start: Position { line: 23, column: 32, }, end: Position { line: 23, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 23, column: 43, }, end: Position { line: 23, column: 50, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "extraTestModule", span: Span { start: Position { line: 23, column: 55, }, end: Position { line: 23, column: 70, }, }, }, ), Identifier( Identifier { id: "module", span: Span { start: Position { line: 23, column: 71, }, end: Position { line: 23, column: 77, }, }, }, ), ], span: Span { start: Position { line: 23, column: 53, }, end: Position { line: 23, column: 79, }, }, }, ), }, ), ], span: Span { start: Position { line: 23, column: 41, }, end: Position { line: 23, column: 82, }, }, }, ), ], }, ), span: Span { start: Position { line: 23, column: 14, }, end: Position { line: 23, column: 82, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "runTest", span: Span { start: Position { line: 24, column: 3, }, end: Position { line: 24, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "module", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "nixos-lib", span: Span { start: Position { line: 24, column: 21, }, end: Position { line: 24, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runTest", span: Span { start: Position { line: 24, column: 31, }, end: Position { line: 24, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 24, column: 41, }, end: Position { line: 24, column: 48, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "extraTestModule", span: Span { start: Position { line: 24, column: 53, }, end: Position { line: 24, column: 68, }, }, }, ), Identifier( Identifier { id: "module", span: Span { start: Position { line: 24, column: 69, }, end: Position { line: 24, column: 75, }, }, }, ), ], span: Span { start: Position { line: 24, column: 51, }, end: Position { line: 24, column: 77, }, }, }, ), }, ), ], span: Span { start: Position { line: 24, column: 39, }, end: Position { line: 24, column: 80, }, }, }, ), ], }, ), span: Span { start: Position { line: 24, column: 13, }, end: Position { line: 24, column: 80, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraTestModule", span: Span { start: Position { line: 26, column: 3, }, end: Position { line: 26, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 27, column: 5, }, end: Position { line: 27, column: 11, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hostPkgs", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 28, column: 18, }, end: Position { line: 28, column: 22, }, }, }, ), }, ), ], span: Span { start: Position { line: 27, column: 14, }, end: Position { line: 29, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 26, column: 21, }, end: Position { line: 30, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "makeTest", span: Span { start: Position { line: 35, column: 3, }, end: Position { line: 35, column: 11, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: RightAt( "t", ), arguments: [ FunctionHeadDestructuredArgument { identifier: "machine", default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 36, column: 17, }, end: Position { line: 36, column: 21, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "nodes", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 37, column: 15, }, end: Position { line: 37, column: 17, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "testScript", default: None, }, FunctionHeadDestructuredArgument { identifier: "enableOCR", default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 39, column: 19, }, end: Position { line: 39, column: 24, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "name", default: Some( String( String_ { parts: [ Raw( PartRaw { content: "unnamed", span: Span { start: Position { line: 40, column: 15, }, end: Position { line: 40, column: 22, }, }, }, ), ], span: Span { start: Position { line: 40, column: 14, }, end: Position { line: 40, column: 23, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "skipTypeCheck", default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 41, column: 23, }, end: Position { line: 41, column: 28, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "skipLint", default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 43, column: 18, }, end: Position { line: 43, column: 23, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "passthru", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 44, column: 18, }, end: Position { line: 44, column: 20, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "meta", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 45, column: 14, }, end: Position { line: 45, column: 16, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "pos", default: Some( IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "meta", span: Span { start: Position { line: 48, column: 13, }, end: Position { line: 48, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 48, column: 18, }, end: Position { line: 48, column: 29, }, }, }, ), ], default: Some( Identifier( Identifier { id: "null", span: Span { start: Position { line: 48, column: 33, }, end: Position { line: 48, column: 37, }, }, }, ), ), }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 48, column: 41, }, end: Position { line: 48, column: 45, }, }, }, ), }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 49, column: 16, }, end: Position { line: 49, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "unsafeGetAttrPos", span: Span { start: Position { line: 49, column: 25, }, end: Position { line: 49, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 49, column: 43, }, end: Position { line: 49, column: 54, }, }, }, ), ], span: Span { start: Position { line: 49, column: 42, }, end: Position { line: 49, column: 55, }, }, }, ), Identifier( Identifier { id: "meta", span: Span { start: Position { line: 49, column: 56, }, end: Position { line: 49, column: 60, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 50, column: 16, }, end: Position { line: 50, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "unsafeGetAttrPos", span: Span { start: Position { line: 50, column: 25, }, end: Position { line: 50, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "testScript", span: Span { start: Position { line: 50, column: 43, }, end: Position { line: 50, column: 53, }, }, }, ), ], span: Span { start: Position { line: 50, column: 42, }, end: Position { line: 50, column: 54, }, }, }, ), Identifier( Identifier { id: "t", span: Span { start: Position { line: 50, column: 55, }, end: Position { line: 50, column: 56, }, }, }, ), ], }, ), span: Span { start: Position { line: 48, column: 10, }, end: Position { line: 50, column: 56, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "extraPythonPackages", default: Some( Function( Function { head: Simple( FunctionHeadSimple { identifier: "_", }, ), body: List( List { elements: [], span: Span { start: Position { line: 51, column: 34, }, end: Position { line: 51, column: 36, }, }, }, ), span: Span { start: Position { line: 51, column: 30, }, end: Position { line: 51, column: 36, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "interactive", default: Some( Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 23, }, }, }, ), ), }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "testConfig", span: Span { start: Position { line: 54, column: 5, }, end: Position { line: 54, column: 15, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "evalTest", span: Span { start: Position { line: 55, column: 8, }, end: Position { line: 55, column: 16, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 16, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_file", span: Span { start: Position { line: 57, column: 13, }, end: Position { line: 57, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "makeTest parameters", span: Span { start: Position { line: 57, column: 22, }, end: Position { line: 57, column: 41, }, }, }, ), ], span: Span { start: Position { line: 57, column: 21, }, end: Position { line: 57, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 57, column: 44, }, end: Position { line: 57, column: 50, }, }, }, ), ], to: Identifier( Identifier { id: "t", span: Span { start: Position { line: 57, column: 53, }, end: Position { line: 57, column: 54, }, }, }, ), }, ), ], span: Span { start: Position { line: 57, column: 11, }, end: Position { line: 57, column: 57, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaults", span: Span { start: Position { line: 59, column: 13, }, end: Position { line: 59, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_file", span: Span { start: Position { line: 60, column: 15, }, end: Position { line: 60, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "makeTest: extraConfigurations", span: Span { start: Position { line: 60, column: 24, }, end: Position { line: 60, column: 53, }, }, }, ), ], span: Span { start: Position { line: 60, column: 23, }, end: Position { line: 60, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 61, column: 15, }, end: Position { line: 61, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "extraConfigurations", span: Span { start: Position { line: 61, column: 25, }, end: Position { line: 61, column: 44, }, }, }, ), }, ), ], span: Span { start: Position { line: 59, column: 24, }, end: Position { line: 62, column: 14, }, }, }, ), }, ), ], span: Span { start: Position { line: 58, column: 11, }, end: Position { line: 63, column: 12, }, }, }, ), ], span: Span { start: Position { line: 56, column: 19, }, end: Position { line: 64, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 55, column: 17, }, end: Position { line: 65, column: 8, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 65, column: 10, }, end: Position { line: 65, column: 16, }, }, }, ), ], default: None, }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "testConfig", span: Span { start: Position { line: 67, column: 7, }, end: Position { line: 67, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "test", span: Span { start: Position { line: 67, column: 18, }, end: Position { line: 67, column: 22, }, }, }, ), ], default: None, }, ), operator: Update, right: Identifier( Identifier { id: "testConfig", span: Span { start: Position { line: 68, column: 12, }, end: Position { line: 68, column: 22, }, }, }, ), }, ), span: Span { start: Position { line: 53, column: 12, }, end: Position { line: 68, column: 22, }, }, }, ), span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 68, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "simpleTest", span: Span { start: Position { line: 70, column: 3, }, end: Position { line: 70, column: 13, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "as", }, ), body: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "makeTest", span: Span { start: Position { line: 70, column: 21, }, end: Position { line: 70, column: 29, }, }, }, ), arguments: [ Identifier( Identifier { id: "as", span: Span { start: Position { line: 70, column: 30, }, end: Position { line: 70, column: 32, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "test", span: Span { start: Position { line: 70, column: 34, }, end: Position { line: 70, column: 38, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 70, column: 16, }, end: Position { line: 70, column: 38, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 1, }, end: Position { line: 72, column: 2, }, }, }, ), span: Span { start: Position { line: 15, column: 1, }, end: Position { line: 72, column: 2, }, }, }, ), span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 72, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 72, column: 2, }, }, }, )