Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", 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: "hardware", span: Span { start: Position { line: 4, column: 16, }, end: Position { line: 4, column: 24, }, }, }, ), Raw( PartRaw { content: "cpu", span: Span { start: Position { line: 4, column: 25, }, end: Position { line: 4, column: 28, }, }, }, ), Raw( PartRaw { content: "amd", span: Span { start: Position { line: 4, column: 29, }, end: Position { line: 4, column: 32, }, }, }, ), Raw( PartRaw { content: "sev", span: Span { start: Position { line: 4, column: 33, }, end: Position { line: 4, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultGroup", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "sev", span: Span { start: Position { line: 5, column: 19, }, end: Position { line: 5, column: 22, }, }, }, ), ], span: Span { start: Position { line: 5, column: 18, }, end: Position { line: 5, column: 23, }, }, }, ), }, ), ], target: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 7, column: 8, }, end: Position { line: 7, column: 11, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 12, }, }, }, ), Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 8, column: 13, }, end: Position { line: 8, column: 21, }, }, }, ), Raw( PartRaw { content: "cpu", span: Span { start: Position { line: 8, column: 22, }, end: Position { line: 8, column: 25, }, }, }, ), Raw( PartRaw { content: "amd", span: Span { start: Position { line: 8, column: 26, }, end: Position { line: 8, column: 29, }, }, }, ), Raw( PartRaw { content: "sev", span: Span { start: Position { line: 8, column: 30, }, end: Position { line: 8, column: 33, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 9, column: 7, }, end: Position { line: 9, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 9, column: 32, }, end: Position { line: 9, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 9, column: 36, }, end: Position { line: 9, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "access to the AMD SEV device", span: Span { start: Position { line: 9, column: 43, }, end: Position { line: 9, column: 71, }, }, }, ), ], span: Span { start: Position { line: 9, column: 42, }, end: Position { line: 9, column: 72, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 10, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 11, column: 23, }, end: Position { line: 11, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 11, column: 27, }, end: Position { line: 11, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Owner to assign to the SEV device.", span: Span { start: Position { line: 11, column: 34, }, end: Position { line: 11, column: 68, }, }, }, ), ], span: Span { start: Position { line: 11, column: 33, }, end: Position { line: 11, column: 69, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 12, column: 9, }, end: Position { line: 12, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 12, column: 16, }, end: Position { line: 12, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 12, column: 22, }, end: Position { line: 12, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 13, column: 20, }, end: Position { line: 13, column: 24, }, }, }, ), ], span: Span { start: Position { line: 13, column: 19, }, end: Position { line: 13, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 23, }, end: Position { line: 14, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 15, column: 15, }, end: Position { line: 15, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 16, column: 9, }, end: Position { line: 16, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 23, }, end: Position { line: 16, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 27, }, end: Position { line: 16, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Group to assign to the SEV device.", span: Span { start: Position { line: 16, column: 34, }, end: Position { line: 16, column: 68, }, }, }, ), ], span: Span { start: Position { line: 16, column: 33, }, end: Position { line: 16, column: 69, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 17, column: 9, }, end: Position { line: 17, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 17, column: 16, }, end: Position { line: 17, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 17, column: 22, }, end: Position { line: 17, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 18, column: 9, }, end: Position { line: 18, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "defaultGroup", span: Span { start: Position { line: 18, column: 19, }, end: Position { line: 18, column: 31, }, }, }, ), }, ), ], span: Span { start: Position { line: 15, column: 24, }, end: Position { line: 19, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mode", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 20, column: 14, }, end: Position { line: 20, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 21, column: 23, }, end: Position { line: 21, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 21, column: 27, }, end: Position { line: 21, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Mode to set for the SEV device.", span: Span { start: Position { line: 21, column: 34, }, end: Position { line: 21, column: 65, }, }, }, ), ], span: Span { start: Position { line: 21, column: 33, }, end: Position { line: 21, column: 66, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 22, column: 9, }, end: Position { line: 22, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 22, column: 16, }, end: Position { line: 22, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 22, column: 22, }, end: Position { line: 22, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "0660", span: Span { start: Position { line: 23, column: 20, }, end: Position { line: 23, column: 24, }, }, }, ), ], span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 23, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 20, column: 23, }, end: Position { line: 24, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 8, column: 36, }, end: Position { line: 25, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 27, column: 5, }, end: Position { line: 27, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 27, column: 14, }, end: Position { line: 27, column: 18, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 27, column: 19, }, end: Position { line: 27, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 27, column: 23, }, end: Position { line: 27, column: 29, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 17, }, }, }, ), ], to: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 30, column: 11, }, end: Position { line: 30, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hasAttr", span: Span { start: Position { line: 30, column: 23, }, end: Position { line: 30, column: 30, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 30, column: 31, }, end: Position { line: 30, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 30, column: 35, }, end: Position { line: 30, column: 39, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 30, column: 40, }, end: Position { line: 30, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 30, column: 47, }, end: Position { line: 30, column: 52, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 30, column: 53, }, end: Position { line: 30, column: 58, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 31, column: 11, }, end: Position { line: 31, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Given user does not exist", span: Span { start: Position { line: 31, column: 22, }, end: Position { line: 31, column: 47, }, }, }, ), ], span: Span { start: Position { line: 31, column: 21, }, end: Position { line: 31, column: 48, }, }, }, ), }, ), ], span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 32, column: 10, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 34, column: 11, }, end: Position { line: 34, column: 20, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 34, column: 24, }, end: Position { line: 34, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 34, column: 28, }, end: Position { line: 34, column: 33, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Identifier( Identifier { id: "defaultGroup", span: Span { start: Position { line: 34, column: 37, }, end: Position { line: 34, column: 49, }, }, }, ), }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "hasAttr", span: Span { start: Position { line: 34, column: 55, }, end: Position { line: 34, column: 62, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 34, column: 63, }, end: Position { line: 34, column: 66, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 34, column: 67, }, end: Position { line: 34, column: 72, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 34, column: 73, }, end: Position { line: 34, column: 79, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 34, column: 80, }, end: Position { line: 34, column: 85, }, }, }, ), Raw( PartRaw { content: "groups", span: Span { start: Position { line: 34, column: 86, }, end: Position { line: 34, column: 92, }, }, }, ), ], default: None, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 35, column: 11, }, end: Position { line: 35, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Given group does not exist", span: Span { start: Position { line: 35, column: 22, }, end: Position { line: 35, column: 48, }, }, }, ), ], span: Span { start: Position { line: 35, column: 21, }, end: Position { line: 35, column: 49, }, }, }, ), }, ), ], span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 36, column: 10, }, }, }, ), ], span: Span { start: Position { line: 28, column: 20, }, end: Position { line: 37, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 11, }, }, }, ), Raw( PartRaw { content: "extraModprobeConfig", span: Span { start: Position { line: 39, column: 12, }, end: Position { line: 39, column: 31, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "options kvm_amd sev=1\n", span: Span { start: Position { line: 40, column: 1, }, end: Position { line: 41, column: 7, }, }, }, ), ], span: Span { start: Position { line: 39, column: 34, }, end: Position { line: 41, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 12, }, }, }, ), Raw( PartRaw { content: "groups", span: Span { start: Position { line: 43, column: 13, }, end: Position { line: 43, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 43, column: 22, }, end: Position { line: 43, column: 35, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 43, column: 37, }, end: Position { line: 43, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 43, column: 41, }, end: Position { line: 43, column: 46, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: Identifier( Identifier { id: "defaultGroup", span: Span { start: Position { line: 43, column: 50, }, end: Position { line: 43, column: 62, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Expression( PartExpression { expression: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 44, column: 12, }, end: Position { line: 44, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 44, column: 16, }, end: Position { line: 44, column: 21, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 23, }, }, }, ), }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 44, column: 26, }, end: Position { line: 44, column: 28, }, }, }, ), }, ), ], span: Span { start: Position { line: 43, column: 64, }, end: Position { line: 45, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 47, column: 7, }, end: Position { line: 47, column: 15, }, }, }, ), Raw( PartRaw { content: "udev", span: Span { start: Position { line: 47, column: 16, }, end: Position { line: 47, column: 20, }, }, }, ), Raw( PartRaw { content: "extraRules", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 31, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 39, }, end: Position { line: 47, column: 42, }, }, }, ), target: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "KERNEL==\"sev\", OWNER=\"", span: Span { start: Position { line: 48, column: 1, }, end: Position { line: 48, column: 31, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "user", span: Span { start: Position { line: 48, column: 33, }, end: Position { line: 48, column: 37, }, }, }, ), }, ), Raw( PartRaw { content: "\", GROUP=\"", span: Span { start: Position { line: 48, column: 1, }, end: Position { line: 48, column: 48, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "group", span: Span { start: Position { line: 48, column: 50, }, end: Position { line: 48, column: 55, }, }, }, ), }, ), Raw( PartRaw { content: "\", MODE=\"", span: Span { start: Position { line: 48, column: 1, }, end: Position { line: 48, column: 65, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "mode", span: Span { start: Position { line: 48, column: 67, }, end: Position { line: 48, column: 71, }, }, }, ), }, ), Raw( PartRaw { content: "\"\n", span: Span { start: Position { line: 48, column: 1, }, end: Position { line: 49, column: 7, }, }, }, ), ], span: Span { start: Position { line: 47, column: 44, }, end: Position { line: 49, column: 9, }, }, }, ), span: Span { start: Position { line: 47, column: 34, }, end: Position { line: 49, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 27, column: 30, }, end: Position { line: 50, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 13, }, end: Position { line: 51, column: 4, }, }, }, ), span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 51, column: 4, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 51, column: 4, }, }, }, ), span: Span { start: Position { line: 2, column: 1, }, end: Position { line: 51, column: 4, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 51, column: 4, }, }, }, )