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: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 7, column: 10, }, end: Position { line: 7, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 7, column: 17, }, end: Position { line: 7, column: 25, }, }, }, ), Raw( PartRaw { content: "salt", span: Span { start: Position { line: 7, column: 26, }, end: Position { line: 7, column: 30, }, }, }, ), Raw( PartRaw { content: "minion", span: Span { start: Position { line: 7, column: 31, }, end: Position { line: 7, column: 37, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fullConfig", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "recursiveUpdate", span: Span { start: Position { line: 9, column: 20, }, end: Position { line: 9, column: 35, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default_include", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/salt/minion.d/*.conf", span: Span { start: Position { line: 14, column: 24, }, end: Position { line: 14, column: 53, }, }, }, ), ], span: Span { start: Position { line: 14, column: 23, }, end: Position { line: 14, column: 54, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pki_dir", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/lib/salt/pki/minion", span: Span { start: Position { line: 16, column: 16, }, end: Position { line: 16, column: 40, }, }, }, ), ], span: Span { start: Position { line: 16, column: 15, }, end: Position { line: 16, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 9, column: 36, }, end: Position { line: 17, column: 4, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 8, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "configuration", span: Span { start: Position { line: 17, column: 9, }, end: Position { line: 17, column: 22, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 22, column: 3, }, end: Position { line: 22, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 23, column: 5, }, end: Position { line: 23, column: 13, }, }, }, ), Raw( PartRaw { content: "salt", span: Span { start: Position { line: 23, column: 14, }, end: Position { line: 23, column: 18, }, }, }, ), Raw( PartRaw { content: "minion", span: Span { start: Position { line: 23, column: 19, }, end: Position { line: 23, column: 25, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 24, column: 16, }, end: Position { line: 24, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 24, column: 32, }, end: Position { line: 24, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 24, column: 36, }, end: Position { line: 24, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Salt minion service", span: Span { start: Position { line: 24, column: 43, }, end: Position { line: 24, column: 62, }, }, }, ), ], span: Span { start: Position { line: 24, column: 42, }, end: Position { line: 24, column: 63, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configuration", span: Span { start: Position { line: 25, column: 7, }, end: Position { line: 25, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 25, column: 23, }, end: Position { line: 25, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 26, column: 9, }, end: Position { line: 26, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 26, column: 16, }, end: Position { line: 26, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 26, column: 22, }, end: Position { line: 26, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 27, column: 9, }, end: Position { line: 27, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 27, column: 19, }, end: Position { line: 27, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 28, column: 23, }, end: Position { line: 28, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 28, column: 27, }, end: Position { line: 28, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Salt minion configuration as Nix attribute set.\nSee \nfor details.\n", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 32, column: 9, }, }, }, ), ], span: Span { start: Position { line: 28, column: 33, }, end: Position { line: 32, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 25, column: 32, }, end: Position { line: 33, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 23, column: 28, }, end: Position { line: 34, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 22, column: 13, }, end: Position { line: 35, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 37, column: 3, }, end: Position { line: 37, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 37, column: 12, }, end: Position { line: 37, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 37, column: 17, }, end: Position { line: 37, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 37, column: 21, }, end: Position { line: 37, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 38, column: 5, }, end: Position { line: 38, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "etc", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 10, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "salt/minion", span: Span { start: Position { line: 43, column: 12, }, end: Position { line: 43, column: 23, }, }, }, ), ], span: Span { start: Position { line: 43, column: 11, }, end: Position { line: 43, column: 24, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 43, column: 25, }, end: Position { line: 43, column: 31, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 43, column: 34, }, end: Position { line: 43, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 43, column: 39, }, end: Position { line: 43, column: 48, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "minion", span: Span { start: Position { line: 43, column: 50, }, end: Position { line: 43, column: 56, }, }, }, ), ], span: Span { start: Position { line: 43, column: 49, }, end: Position { line: 43, column: 57, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "toJSON", span: Span { start: Position { line: 44, column: 18, }, end: Position { line: 44, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "fullConfig", span: Span { start: Position { line: 44, column: 25, }, end: Position { line: 44, column: 35, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 46, column: 7, }, end: Position { line: 46, column: 21, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 46, column: 29, }, end: Position { line: 46, column: 33, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "salt", span: Span { start: Position { line: 46, column: 37, }, end: Position { line: 46, column: 41, }, }, }, ), ], span: Span { start: Position { line: 46, column: 35, }, end: Position { line: 46, column: 43, }, }, }, ), span: Span { start: Position { line: 46, column: 24, }, end: Position { line: 46, column: 43, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 19, }, end: Position { line: 47, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 48, column: 5, }, end: Position { line: 48, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 48, column: 13, }, end: Position { line: 48, column: 21, }, }, }, ), Raw( PartRaw { content: "salt-minion", span: Span { start: Position { line: 48, column: 22, }, end: Position { line: 48, column: 33, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 49, column: 7, }, end: Position { line: 49, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Salt Minion", span: Span { start: Position { line: 49, column: 22, }, end: Position { line: 49, column: 33, }, }, }, ), ], span: Span { start: Position { line: 49, column: 21, }, end: Position { line: 49, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 50, column: 7, }, end: Position { line: 50, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 50, column: 21, }, end: Position { line: 50, column: 38, }, }, }, ), ], span: Span { start: Position { line: 50, column: 20, }, end: Position { line: 50, column: 39, }, }, }, ), ], span: Span { start: Position { line: 50, column: 18, }, end: Position { line: 50, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 32, }, }, }, ), ], span: Span { start: Position { line: 51, column: 17, }, end: Position { line: 51, column: 33, }, }, }, ), ], span: Span { start: Position { line: 51, column: 15, }, end: Position { line: 51, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 52, column: 19, }, end: Position { line: 52, column: 23, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "util-linux", span: Span { start: Position { line: 53, column: 9, }, end: Position { line: 53, column: 19, }, }, }, ), ], span: Span { start: Position { line: 52, column: 25, }, end: Position { line: 54, column: 8, }, }, }, ), span: Span { start: Position { line: 52, column: 14, }, end: Position { line: 54, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 55, column: 7, }, end: Position { line: 55, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 56, column: 24, }, end: Position { line: 56, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "salt", span: Span { start: Position { line: 56, column: 29, }, end: Position { line: 56, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/salt-minion", span: Span { start: Position { line: 56, column: 22, }, end: Position { line: 56, column: 50, }, }, }, ), ], span: Span { start: Position { line: 56, column: 21, }, end: Position { line: 56, column: 51, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "LimitNOFILE", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 20, }, }, }, ), ], to: Integer( Integer { value: "8192", span: Span { start: Position { line: 57, column: 23, }, end: Position { line: 57, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 58, column: 9, }, end: Position { line: 58, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "notify", span: Span { start: Position { line: 58, column: 17, }, end: Position { line: 58, column: 23, }, }, }, ), ], span: Span { start: Position { line: 58, column: 16, }, end: Position { line: 58, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "NotifyAccess", span: Span { start: Position { line: 59, column: 9, }, end: Position { line: 59, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "all", span: Span { start: Position { line: 59, column: 25, }, end: Position { line: 59, column: 28, }, }, }, ), ], span: Span { start: Position { line: 59, column: 24, }, end: Position { line: 59, column: 29, }, }, }, ), }, ), ], span: Span { start: Position { line: 55, column: 23, }, end: Position { line: 60, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "restartTriggers", span: Span { start: Position { line: 61, column: 7, }, end: Position { line: 61, column: 22, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 62, column: 9, }, end: Position { line: 62, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 62, column: 16, }, end: Position { line: 62, column: 27, }, }, }, ), Raw( PartRaw { content: "etc", span: Span { start: Position { line: 62, column: 28, }, end: Position { line: 62, column: 31, }, }, }, ), Expression( PartExpression { expression: String( String_ { parts: [ Raw( PartRaw { content: "salt/minion", span: Span { start: Position { line: 62, column: 33, }, end: Position { line: 62, column: 44, }, }, }, ), ], span: Span { start: Position { line: 62, column: 32, }, end: Position { line: 62, column: 45, }, }, }, ), }, ), Raw( PartRaw { content: "source", span: Span { start: Position { line: 62, column: 46, }, end: Position { line: 62, column: 52, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 61, column: 25, }, end: Position { line: 63, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 48, column: 36, }, end: Position { line: 64, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 37, column: 28, }, end: Position { line: 65, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 21, column: 1, }, end: Position { line: 66, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 66, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 66, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 66, column: 2, }, }, }, )