Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: RightAt( "args", ), arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 7, column: 6, }, end: Position { line: 7, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 10, column: 9, }, end: Position { line: 10, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 10, column: 16, }, end: Position { line: 10, column: 24, }, }, }, ), Raw( PartRaw { content: "github-runners", span: Span { start: Position { line: 10, column: 25, }, end: Position { line: 10, column: 39, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 15, column: 11, }, end: Position { line: 15, column: 19, }, }, }, ), Raw( PartRaw { content: "github-runners", span: Span { start: Position { line: 15, column: 20, }, end: Position { line: 15, column: 34, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 15, column: 37, }, end: Position { line: 15, column: 45, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 16, column: 15, }, end: Position { line: 16, column: 17, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 9, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 17, column: 17, }, end: Position { line: 17, column: 22, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 17, column: 24, }, end: Position { line: 17, column: 31, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "submodule", span: Span { start: Position { line: 17, column: 33, }, end: Position { line: 17, column: 42, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 17, column: 45, }, end: Position { line: 17, column: 52, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 17, column: 55, }, end: Position { line: 17, column: 61, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "./github-runner/options.nix", span: Span { start: Position { line: 17, column: 62, }, end: Position { line: 17, column: 89, }, }, }, ), ], span: Span { start: Position { line: 17, column: 62, }, end: Position { line: 17, column: 89, }, }, }, ), BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "args", span: Span { start: Position { line: 17, column: 91, }, end: Position { line: 17, column: 95, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "includeNameDefault", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 25, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 19, column: 28, }, end: Position { line: 19, column: 33, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 99, }, end: Position { line: 20, column: 6, }, }, }, ), }, ), ], }, ), }, ), ], span: Span { start: Position { line: 17, column: 43, }, end: Position { line: 20, column: 10, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 17, column: 12, }, end: Position { line: 20, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "runner1", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 23, column: 18, }, end: Position { line: 23, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "url", span: Span { start: Position { line: 24, column: 9, }, end: Position { line: 24, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://github.com/owner/repo", span: Span { start: Position { line: 24, column: 16, }, end: Position { line: 24, column: 45, }, }, }, ), ], span: Span { start: Position { line: 24, column: 15, }, end: Position { line: 24, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "runner1", span: Span { start: Position { line: 25, column: 17, }, end: Position { line: 25, column: 24, }, }, }, ), ], span: Span { start: Position { line: 25, column: 16, }, end: Position { line: 25, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "tokenFile", span: Span { start: Position { line: 26, column: 9, }, end: Position { line: 26, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/secrets/token1", span: Span { start: Position { line: 26, column: 22, }, end: Position { line: 26, column: 37, }, }, }, ), ], span: Span { start: Position { line: 26, column: 21, }, end: Position { line: 26, column: 38, }, }, }, ), }, ), ], span: Span { start: Position { line: 22, column: 17, }, end: Position { line: 27, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "runner2", span: Span { start: Position { line: 29, column: 7, }, end: Position { line: 29, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 30, column: 18, }, end: Position { line: 30, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "url", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://github.com/owner/repo", span: Span { start: Position { line: 31, column: 16, }, end: Position { line: 31, column: 45, }, }, }, ), ], span: Span { start: Position { line: 31, column: 15, }, end: Position { line: 31, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "runner2", span: Span { start: Position { line: 32, column: 17, }, end: Position { line: 32, column: 24, }, }, }, ), ], span: Span { start: Position { line: 32, column: 16, }, end: Position { line: 32, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "tokenFile", span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 33, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/secrets/token2", span: Span { start: Position { line: 33, column: 22, }, end: Position { line: 33, column: 37, }, }, }, ), ], span: Span { start: Position { line: 33, column: 21, }, end: Position { line: 33, column: 38, }, }, }, ), }, ), ], span: Span { start: Position { line: 29, column: 17, }, end: Position { line: 34, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 21, column: 15, }, end: Position { line: 35, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 36, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 36, column: 19, }, end: Position { line: 36, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 36, column: 23, }, end: Position { line: 36, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Multiple GitHub Runners.\n", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 38, column: 5, }, }, }, ), ], span: Span { start: Position { line: 36, column: 29, }, end: Position { line: 38, column: 7, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 15, column: 46, }, end: Position { line: 39, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 41, column: 3, }, end: Position { line: 41, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 42, column: 5, }, end: Position { line: 42, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 42, column: 13, }, end: Position { line: 42, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "flip", span: Span { start: Position { line: 42, column: 24, }, end: Position { line: 42, column: 28, }, }, }, ), arguments: [ Identifier( Identifier { id: "mapAttrs'", span: Span { start: Position { line: 42, column: 29, }, end: Position { line: 42, column: 38, }, }, }, ), Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 42, column: 39, }, end: Position { line: 42, column: 42, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "svcName", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "github-runner-", span: Span { start: Position { line: 44, column: 20, }, end: Position { line: 44, column: 38, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 44, column: 36, }, end: Position { line: 44, column: 37, }, }, }, ), }, ), ], span: Span { start: Position { line: 44, column: 19, }, end: Position { line: 44, column: 39, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 22, }, }, }, ), arguments: [ Identifier( Identifier { id: "svcName", span: Span { start: Position { line: 46, column: 23, }, end: Position { line: 46, column: 30, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 47, column: 10, }, end: Position { line: 47, column: 16, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "./github-runner/service.nix", span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 44, }, }, }, ), ], span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 44, }, }, }, ), BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "args", span: Span { start: Position { line: 47, column: 46, }, end: Position { line: 47, column: 50, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "svcName", span: Span { start: Position { line: 48, column: 19, }, end: Position { line: 48, column: 26, }, }, }, ), ], span: Span { start: Position { line: 47, column: 55, }, end: Position { line: 48, column: 27, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 49, column: 11, }, end: Position { line: 49, column: 14, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "v", span: Span { start: Position { line: 49, column: 17, }, end: Position { line: 49, column: 18, }, }, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 50, column: 13, }, end: Position { line: 50, column: 17, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "v", span: Span { start: Position { line: 50, column: 23, }, end: Position { line: 50, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 50, column: 25, }, end: Position { line: 50, column: 29, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 50, column: 33, }, end: Position { line: 50, column: 37, }, }, }, ), }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "v", span: Span { start: Position { line: 50, column: 43, }, end: Position { line: 50, column: 44, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 50, column: 45, }, end: Position { line: 50, column: 49, }, }, }, ), ], default: None, }, ), else_: Identifier( Identifier { id: "n", span: Span { start: Position { line: 50, column: 55, }, end: Position { line: 50, column: 56, }, }, }, ), span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 56, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 51, column: 12, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemdDir", span: Span { start: Position { line: 52, column: 11, }, end: Position { line: 52, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "github-runner/", span: Span { start: Position { line: 52, column: 25, }, end: Position { line: 52, column: 43, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 52, column: 41, }, end: Position { line: 52, column: 42, }, }, }, ), }, ), ], span: Span { start: Position { line: 52, column: 24, }, end: Position { line: 52, column: 44, }, }, }, ), }, ), ], span: Span { start: Position { line: 47, column: 54, }, end: Position { line: 53, column: 10, }, }, }, ), }, ), ], }, ), ], }, ), span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 53, column: 12, }, }, }, ), span: Span { start: Position { line: 42, column: 47, }, end: Position { line: 53, column: 12, }, }, }, ), span: Span { start: Position { line: 42, column: 44, }, end: Position { line: 53, column: 12, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 41, column: 12, }, end: Position { line: 55, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 14, column: 1, }, end: Position { line: 56, column: 2, }, }, }, ), span: Span { start: Position { line: 9, column: 1, }, end: Position { line: 56, column: 2, }, }, }, ), span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 56, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 56, column: 2, }, }, }, )