Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, 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: 2, column: 6, }, end: Position { line: 2, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 4, column: 3, }, end: Position { line: 4, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 4, column: 9, }, end: Position { line: 4, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 4, column: 16, }, end: Position { line: 4, column: 24, }, }, }, ), Raw( PartRaw { content: "karma", span: Span { start: Position { line: 4, column: 25, }, end: Position { line: 4, column: 30, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "yaml", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 7, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 5, column: 10, }, end: Position { line: 5, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "formats", span: Span { start: Position { line: 5, column: 15, }, end: Position { line: 5, column: 22, }, }, }, ), Raw( PartRaw { content: "yaml", span: Span { start: Position { line: 5, column: 23, }, end: Position { line: 5, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 5, column: 28, }, end: Position { line: 5, column: 31, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 8, column: 11, }, end: Position { line: 8, column: 19, }, }, }, ), Raw( PartRaw { content: "karma", span: Span { start: Position { line: 8, column: 20, }, end: Position { line: 8, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 9, column: 14, }, end: Position { line: 9, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 9, column: 30, }, end: Position { line: 9, column: 35, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "the Karma dashboard service", span: Span { start: Position { line: 9, column: 37, }, end: Position { line: 9, column: 64, }, }, }, ), ], span: Span { start: Position { line: 9, column: 36, }, end: Position { line: 9, column: 65, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 11, column: 15, }, end: Position { line: 11, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 12, column: 14, }, end: Position { line: 12, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 12, column: 20, }, end: Position { line: 12, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 13, column: 17, }, end: Position { line: 13, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "karma", span: Span { start: Position { line: 13, column: 22, }, end: Position { line: 13, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 14, column: 21, }, end: Position { line: 14, column: 38, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.karma", span: Span { start: Position { line: 14, column: 40, }, end: Position { line: 14, column: 50, }, }, }, ), ], span: Span { start: Position { line: 14, column: 39, }, end: Position { line: 14, column: 51, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 15, column: 21, }, end: Position { line: 15, column: 26, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The Karma package that should be used.\n", span: Span { start: Position { line: 16, column: 1, }, end: Position { line: 17, column: 7, }, }, }, ), ], span: Span { start: Position { line: 15, column: 27, }, end: Position { line: 17, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 24, }, end: Position { line: 18, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 21, column: 7, }, end: Position { line: 21, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 21, column: 14, }, end: Position { line: 21, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 21, column: 20, }, end: Position { line: 21, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "yaml", span: Span { start: Position { line: 22, column: 17, }, end: Position { line: 22, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "generate", span: Span { start: Position { line: 22, column: 22, }, end: Position { line: 22, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "karma.yaml", span: Span { start: Position { line: 22, column: 32, }, end: Position { line: 22, column: 42, }, }, }, ), ], span: Span { start: Position { line: 22, column: 31, }, end: Position { line: 22, column: 43, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 22, column: 44, }, end: Position { line: 22, column: 47, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 22, column: 48, }, end: Position { line: 22, column: 56, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "A configuration file generated from the provided nix attributes settings option.", span: Span { start: Position { line: 23, column: 22, }, end: Position { line: 23, column: 102, }, }, }, ), ], span: Span { start: Position { line: 23, column: 21, }, end: Position { line: 23, column: 103, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 24, column: 21, }, end: Position { line: 24, column: 26, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A YAML config file which can be used to configure karma instead of the nix-generated file.\n", span: Span { start: Position { line: 25, column: 1, }, end: Position { line: 26, column: 7, }, }, }, ), ], span: Span { start: Position { line: 24, column: 27, }, end: Position { line: 26, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/etc/karma/karma.conf", span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 39, }, }, }, ), ], span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 40, }, }, }, ), }, ), ], span: Span { start: Position { line: 20, column: 27, }, end: Position { line: 28, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 30, column: 5, }, end: Position { line: 30, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 30, column: 19, }, end: Position { line: 30, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 31, column: 7, }, end: Position { line: 31, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 31, column: 19, }, end: Position { line: 31, column: 24, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 31, column: 26, }, end: Position { line: 31, column: 33, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 31, column: 34, }, end: Position { line: 31, column: 37, }, }, }, ), ], }, ), span: Span { start: Position { line: 31, column: 14, }, end: Position { line: 31, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 32, column: 17, }, end: Position { line: 32, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 33, column: 7, }, end: Position { line: 33, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 33, column: 21, }, end: Position { line: 33, column: 26, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Additional environment variables to provide to karma.\n", span: Span { start: Position { line: 34, column: 1, }, end: Position { line: 35, column: 7, }, }, }, ), ], span: Span { start: Position { line: 33, column: 27, }, end: Position { line: 35, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 36, column: 7, }, end: Position { line: 36, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ALERTMANAGER_URI", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://alertmanager.example.com", span: Span { start: Position { line: 37, column: 29, }, end: Position { line: 37, column: 61, }, }, }, ), ], span: Span { start: Position { line: 37, column: 28, }, end: Position { line: 37, column: 62, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ALERTMANAGER_NAME", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 26, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "single", span: Span { start: Position { line: 38, column: 29, }, end: Position { line: 38, column: 35, }, }, }, ), ], span: Span { start: Position { line: 38, column: 28, }, end: Position { line: 38, column: 36, }, }, }, ), }, ), ], span: Span { start: Position { line: 36, column: 17, }, end: Position { line: 39, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 30, column: 28, }, end: Position { line: 40, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "openFirewall", span: Span { start: Position { line: 42, column: 5, }, end: Position { line: 42, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 42, column: 20, }, end: Position { line: 42, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 43, column: 14, }, end: Position { line: 43, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 43, column: 20, }, end: Position { line: 43, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 44, column: 7, }, end: Position { line: 44, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 44, column: 17, }, end: Position { line: 44, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 45, column: 21, }, end: Position { line: 45, column: 26, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to open ports in the firewall needed for karma to function.\n", span: Span { start: Position { line: 46, column: 1, }, end: Position { line: 47, column: 7, }, }, }, ), ], span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 47, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 42, column: 29, }, end: Position { line: 48, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraOptions", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 51, column: 19, }, end: Position { line: 51, column: 24, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 51, column: 26, }, end: Position { line: 51, column: 32, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 51, column: 33, }, end: Position { line: 51, column: 36, }, }, }, ), ], }, ), span: Span { start: Position { line: 51, column: 14, }, end: Position { line: 51, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 14, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 53, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 53, column: 21, }, end: Position { line: 53, column: 26, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Extra command line options.\n", span: Span { start: Position { line: 54, column: 1, }, end: Position { line: 55, column: 7, }, }, }, ), ], span: Span { start: Position { line: 53, column: 27, }, end: Position { line: 55, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 56, column: 7, }, end: Position { line: 56, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "--alertmanager.timeout 10s", span: Span { start: Position { line: 57, column: 10, }, end: Position { line: 57, column: 36, }, }, }, ), ], span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 37, }, }, }, ), ], span: Span { start: Position { line: 56, column: 17, }, end: Position { line: 58, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 50, column: 29, }, end: Position { line: 59, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 61, column: 5, }, end: Position { line: 61, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 61, column: 16, }, end: Position { line: 61, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 62, column: 7, }, end: Position { line: 62, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 62, column: 14, }, end: Position { line: 62, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "submodule", span: Span { start: Position { line: 62, column: 20, }, end: Position { line: 62, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "freeformType", span: Span { start: Position { line: 63, column: 9, }, end: Position { line: 63, column: 21, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "yaml", span: Span { start: Position { line: 63, column: 24, }, end: Position { line: 63, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 63, column: 29, }, end: Position { line: 63, column: 33, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 65, column: 9, }, end: Position { line: 65, column: 16, }, }, }, ), Raw( PartRaw { content: "listen", span: Span { start: Position { line: 65, column: 17, }, end: Position { line: 65, column: 23, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "address", span: Span { start: Position { line: 66, column: 11, }, end: Position { line: 66, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 66, column: 21, }, end: Position { line: 66, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 67, column: 13, }, end: Position { line: 67, column: 17, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 67, column: 20, }, end: Position { line: 67, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 67, column: 26, }, end: Position { line: 67, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 68, column: 13, }, end: Position { line: 68, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "127.0.0.1", span: Span { start: Position { line: 68, column: 24, }, end: Position { line: 68, column: 33, }, }, }, ), ], span: Span { start: Position { line: 68, column: 23, }, end: Position { line: 68, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 69, column: 13, }, end: Position { line: 69, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 69, column: 27, }, end: Position { line: 69, column: 32, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Hostname or IP to listen on.\n", span: Span { start: Position { line: 70, column: 1, }, end: Position { line: 71, column: 13, }, }, }, ), ], span: Span { start: Position { line: 69, column: 33, }, end: Position { line: 71, column: 15, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 72, column: 13, }, end: Position { line: 72, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "[::]", span: Span { start: Position { line: 72, column: 24, }, end: Position { line: 72, column: 28, }, }, }, ), ], span: Span { start: Position { line: 72, column: 23, }, end: Position { line: 72, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 66, column: 30, }, end: Position { line: 73, column: 12, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 75, column: 11, }, end: Position { line: 75, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 75, column: 18, }, end: Position { line: 75, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 76, column: 13, }, end: Position { line: 76, column: 17, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 76, column: 20, }, end: Position { line: 76, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 76, column: 26, }, end: Position { line: 76, column: 30, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 77, column: 13, }, end: Position { line: 77, column: 20, }, }, }, ), ], to: Integer( Integer { value: "8080", span: Span { start: Position { line: 77, column: 23, }, end: Position { line: 77, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 78, column: 13, }, end: Position { line: 78, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 78, column: 27, }, end: Position { line: 78, column: 32, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "HTTP port to listen on.\n", span: Span { start: Position { line: 79, column: 1, }, end: Position { line: 80, column: 13, }, }, }, ), ], span: Span { start: Position { line: 78, column: 33, }, end: Position { line: 80, column: 15, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 81, column: 13, }, end: Position { line: 81, column: 20, }, }, }, ), ], to: Integer( Integer { value: "8182", span: Span { start: Position { line: 81, column: 23, }, end: Position { line: 81, column: 27, }, }, }, ), }, ), ], span: Span { start: Position { line: 75, column: 27, }, end: Position { line: 82, column: 12, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 65, column: 26, }, end: Position { line: 83, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 62, column: 30, }, end: Position { line: 84, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 85, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "listen", span: Span { start: Position { line: 86, column: 9, }, end: Position { line: 86, column: 15, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "address", span: Span { start: Position { line: 87, column: 11, }, end: Position { line: 87, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "127.0.0.1", span: Span { start: Position { line: 87, column: 22, }, end: Position { line: 87, column: 31, }, }, }, ), ], span: Span { start: Position { line: 87, column: 21, }, end: Position { line: 87, column: 32, }, }, }, ), }, ), ], span: Span { start: Position { line: 86, column: 18, }, end: Position { line: 88, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 85, column: 17, }, end: Position { line: 89, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 90, column: 7, }, end: Position { line: 90, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mdDoc", span: Span { start: Position { line: 90, column: 21, }, end: Position { line: 90, column: 26, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Karma dashboard configuration as nix attributes.\n\nReference: \n", span: Span { start: Position { line: 91, column: 1, }, end: Position { line: 94, column: 7, }, }, }, ), ], span: Span { start: Position { line: 90, column: 27, }, end: Position { line: 94, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 95, column: 7, }, end: Position { line: 95, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "listen", span: Span { start: Position { line: 96, column: 9, }, end: Position { line: 96, column: 15, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "address", span: Span { start: Position { line: 97, column: 11, }, end: Position { line: 97, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "192.168.1.4", span: Span { start: Position { line: 97, column: 22, }, end: Position { line: 97, column: 33, }, }, }, ), ], span: Span { start: Position { line: 97, column: 21, }, end: Position { line: 97, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "port", span: Span { start: Position { line: 98, column: 11, }, end: Position { line: 98, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "8000", span: Span { start: Position { line: 98, column: 19, }, end: Position { line: 98, column: 23, }, }, }, ), ], span: Span { start: Position { line: 98, column: 18, }, end: Position { line: 98, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "prefix", span: Span { start: Position { line: 99, column: 11, }, end: Position { line: 99, column: 17, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/dashboard", span: Span { start: Position { line: 99, column: 21, }, end: Position { line: 99, column: 31, }, }, }, ), ], span: Span { start: Position { line: 99, column: 20, }, end: Position { line: 99, column: 32, }, }, }, ), }, ), ], span: Span { start: Position { line: 96, column: 18, }, end: Position { line: 100, column: 10, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "alertmanager", span: Span { start: Position { line: 101, column: 9, }, end: Position { line: 101, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "interval", span: Span { start: Position { line: 102, column: 11, }, end: Position { line: 102, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "15s", span: Span { start: Position { line: 102, column: 23, }, end: Position { line: 102, column: 26, }, }, }, ), ], span: Span { start: Position { line: 102, column: 22, }, end: Position { line: 102, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "servers", span: Span { start: Position { line: 103, column: 11, }, end: Position { line: 103, column: 18, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 105, column: 15, }, end: Position { line: 105, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "prod", span: Span { start: Position { line: 105, column: 23, }, end: Position { line: 105, column: 27, }, }, }, ), ], span: Span { start: Position { line: 105, column: 22, }, end: Position { line: 105, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "uri", span: Span { start: Position { line: 106, column: 15, }, end: Position { line: 106, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "http://alertmanager.example.com", span: Span { start: Position { line: 106, column: 22, }, end: Position { line: 106, column: 53, }, }, }, ), ], span: Span { start: Position { line: 106, column: 21, }, end: Position { line: 106, column: 54, }, }, }, ), }, ), ], span: Span { start: Position { line: 104, column: 13, }, end: Position { line: 107, column: 14, }, }, }, ), ], span: Span { start: Position { line: 103, column: 21, }, end: Position { line: 108, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 101, column: 24, }, end: Position { line: 109, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 95, column: 17, }, end: Position { line: 110, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 61, column: 25, }, end: Position { line: 111, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 8, column: 28, }, end: Position { line: 112, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 114, column: 3, }, end: Position { line: 114, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 114, column: 12, }, end: Position { line: 114, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 114, column: 17, }, end: Position { line: 114, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 114, column: 21, }, end: Position { line: 114, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 115, column: 5, }, end: Position { line: 115, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 115, column: 13, }, end: Position { line: 115, column: 21, }, }, }, ), Raw( PartRaw { content: "karma", span: Span { start: Position { line: 115, column: 22, }, end: Position { line: 115, column: 27, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 116, column: 7, }, end: Position { line: 116, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Alert dashboard for Prometheus Alertmanager", span: Span { start: Position { line: 116, column: 22, }, end: Position { line: 116, column: 65, }, }, }, ), ], span: Span { start: Position { line: 116, column: 21, }, end: Position { line: 116, column: 66, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 117, column: 7, }, end: Position { line: 117, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 117, column: 21, }, end: Position { line: 117, column: 38, }, }, }, ), ], span: Span { start: Position { line: 117, column: 20, }, end: Position { line: 117, column: 39, }, }, }, ), ], span: Span { start: Position { line: 117, column: 18, }, end: Position { line: 117, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 118, column: 7, }, end: Position { line: 118, column: 18, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 118, column: 21, }, end: Position { line: 118, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 118, column: 25, }, end: Position { line: 118, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 119, column: 7, }, end: Position { line: 119, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 120, column: 9, }, end: Position { line: 120, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "simple", span: Span { start: Position { line: 120, column: 17, }, end: Position { line: 120, column: 23, }, }, }, ), ], span: Span { start: Position { line: 120, column: 16, }, end: Position { line: 120, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "DynamicUser", span: Span { start: Position { line: 121, column: 9, }, end: Position { line: 121, column: 20, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 121, column: 23, }, end: Position { line: 121, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 122, column: 9, }, end: Position { line: 122, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on-failure", span: Span { start: Position { line: 122, column: 20, }, end: Position { line: 122, column: 30, }, }, }, ), ], span: Span { start: Position { line: 122, column: 19, }, end: Position { line: 122, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 123, column: 9, }, end: Position { line: 123, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 123, column: 24, }, end: Position { line: 123, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "karma", span: Span { start: Position { line: 123, column: 29, }, end: Position { line: 123, column: 34, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/karma --config.file ", span: Span { start: Position { line: 123, column: 22, }, end: Position { line: 123, column: 60, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 123, column: 62, }, end: Position { line: 123, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configFile", span: Span { start: Position { line: 123, column: 66, }, end: Position { line: 123, column: 76, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " ", span: Span { start: Position { line: 123, column: 22, }, end: Position { line: 123, column: 78, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 123, column: 80, }, end: Position { line: 123, column: 96, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 123, column: 98, }, end: Position { line: 123, column: 99, }, }, }, ), ], span: Span { start: Position { line: 123, column: 97, }, end: Position { line: 123, column: 100, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 123, column: 101, }, end: Position { line: 123, column: 104, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraOptions", span: Span { start: Position { line: 123, column: 105, }, end: Position { line: 123, column: 117, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 123, column: 21, }, end: Position { line: 123, column: 119, }, }, }, ), }, ), ], span: Span { start: Position { line: 119, column: 23, }, end: Position { line: 124, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 115, column: 30, }, end: Position { line: 125, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 126, column: 5, }, end: Position { line: 126, column: 15, }, }, }, ), Raw( PartRaw { content: "firewall", span: Span { start: Position { line: 126, column: 16, }, end: Position { line: 126, column: 24, }, }, }, ), Raw( PartRaw { content: "allowedTCPPorts", span: Span { start: Position { line: 126, column: 25, }, end: Position { line: 126, column: 40, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 126, column: 43, }, end: Position { line: 126, column: 47, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 126, column: 48, }, end: Position { line: 126, column: 51, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "openFirewall", span: Span { start: Position { line: 126, column: 52, }, end: Position { line: 126, column: 64, }, }, }, ), ], default: None, }, ), List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 126, column: 67, }, end: Position { line: 126, column: 70, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 126, column: 71, }, end: Position { line: 126, column: 79, }, }, }, ), Raw( PartRaw { content: "listen", span: Span { start: Position { line: 126, column: 80, }, end: Position { line: 126, column: 86, }, }, }, ), Raw( PartRaw { content: "port", span: Span { start: Position { line: 126, column: 87, }, end: Position { line: 126, column: 91, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 126, column: 65, }, end: Position { line: 126, column: 93, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 114, column: 28, }, end: Position { line: 127, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 1, }, end: Position { line: 128, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 128, column: 2, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 128, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 128, column: 2, }, }, }, )