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: 9, }, end: Position { line: 7, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 24, }, }, }, ), Raw( PartRaw { content: "torque", span: Span { start: Position { line: 7, column: 25, }, end: Position { line: 7, column: 31, }, }, }, ), Raw( PartRaw { content: "mom", span: Span { start: Position { line: 7, column: 32, }, end: Position { line: 7, column: 35, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "torque", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 9, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 8, column: 12, }, end: Position { line: 8, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "torque", span: Span { start: Position { line: 8, column: 17, }, end: Position { line: 8, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "momConfig", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 10, column: 15, }, end: Position { line: 10, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 10, column: 20, }, end: Position { line: 10, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "torque-mom-config", span: Span { start: Position { line: 10, column: 31, }, end: Position { line: 10, column: 48, }, }, }, ), ], span: Span { start: Position { line: 10, column: 30, }, end: Position { line: 10, column: 49, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "$pbsserver ", span: Span { start: Position { line: 11, column: 1, }, end: Position { line: 11, column: 16, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 11, column: 18, }, end: Position { line: 11, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "serverNode", span: Span { start: Position { line: 11, column: 22, }, end: Position { line: 11, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\n$logevent 225\n", span: Span { start: Position { line: 11, column: 1, }, end: Position { line: 13, column: 3, }, }, }, ), ], span: Span { start: Position { line: 10, column: 50, }, end: Position { line: 13, column: 5, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 13, }, }, }, ), Raw( PartRaw { content: "torque", span: Span { start: Position { line: 19, column: 14, }, end: Position { line: 19, column: 20, }, }, }, ), Raw( PartRaw { content: "mom", span: Span { start: Position { line: 19, column: 21, }, end: Position { line: 19, column: 24, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 20, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 20, column: 32, }, end: Position { line: 20, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 20, column: 36, }, end: Position { line: 20, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "torque computing node", span: Span { start: Position { line: 20, column: 43, }, end: Position { line: 20, column: 64, }, }, }, ), ], span: Span { start: Position { line: 20, column: 42, }, end: Position { line: 20, column: 65, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serverNode", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 22, column: 20, }, end: Position { line: 22, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 23, column: 9, }, end: Position { line: 23, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 23, column: 16, }, end: Position { line: 23, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 23, column: 22, }, end: Position { line: 23, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 24, column: 9, }, end: Position { line: 24, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 24, column: 23, }, end: Position { line: 24, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 24, column: 27, }, end: Position { line: 24, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Hostname running pbs server.", span: Span { start: Position { line: 24, column: 34, }, end: Position { line: 24, column: 62, }, }, }, ), ], span: Span { start: Position { line: 24, column: 33, }, end: Position { line: 24, column: 63, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 22, column: 29, }, end: Position { line: 25, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 19, column: 27, }, end: Position { line: 27, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 13, }, end: Position { line: 29, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 31, column: 3, }, end: Position { line: 31, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 31, column: 12, }, end: Position { line: 31, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 31, column: 17, }, end: Position { line: 31, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 31, column: 21, }, end: Position { line: 31, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 32, column: 5, }, end: Position { line: 32, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 32, column: 17, }, end: Position { line: 32, column: 31, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 32, column: 36, }, end: Position { line: 32, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "torque", span: Span { start: Position { line: 32, column: 41, }, end: Position { line: 32, column: 47, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 32, column: 34, }, end: Position { line: 32, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 34, column: 5, }, end: Position { line: 34, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 34, column: 13, }, end: Position { line: 34, column: 21, }, }, }, ), Raw( PartRaw { content: "torque-mom-init", span: Span { start: Position { line: 34, column: 22, }, end: Position { line: 34, column: 37, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 35, column: 7, }, end: Position { line: 35, column: 11, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 35, column: 19, }, end: Position { line: 35, column: 23, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "torque", span: Span { start: Position { line: 35, column: 27, }, end: Position { line: 35, column: 33, }, }, }, ), Identifier( Identifier { id: "util-linux", span: Span { start: Position { line: 35, column: 34, }, end: Position { line: 35, column: 44, }, }, }, ), Identifier( Identifier { id: "procps", span: Span { start: Position { line: 35, column: 45, }, end: Position { line: 35, column: 51, }, }, }, ), Identifier( Identifier { id: "inetutils", span: Span { start: Position { line: 35, column: 52, }, end: Position { line: 35, column: 61, }, }, }, ), ], span: Span { start: Position { line: 35, column: 25, }, end: Position { line: 35, column: 63, }, }, }, ), span: Span { start: Position { line: 35, column: 14, }, end: Position { line: 35, column: 63, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "script", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 13, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "pbs_mkdirs -v aux\npbs_mkdirs -v mom\nhostname > /var/spool/torque/server_name\ncp -v ", span: Span { start: Position { line: 38, column: 1, }, end: Position { line: 41, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "momConfig", span: Span { start: Position { line: 41, column: 17, }, end: Position { line: 41, column: 26, }, }, }, ), }, ), Raw( PartRaw { content: " /var/spool/torque/mom_priv/config\n", span: Span { start: Position { line: 38, column: 1, }, end: Position { line: 42, column: 7, }, }, }, ), ], span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 42, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 44, column: 7, }, end: Position { line: 44, column: 20, }, }, }, ), Raw( PartRaw { content: "Type", span: Span { start: Position { line: 44, column: 21, }, end: Position { line: 44, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "oneshot", span: Span { start: Position { line: 44, column: 29, }, end: Position { line: 44, column: 36, }, }, }, ), ], span: Span { start: Position { line: 44, column: 28, }, end: Position { line: 44, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "unitConfig", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 17, }, }, }, ), Raw( PartRaw { content: "ConditionPathExists", span: Span { start: Position { line: 45, column: 18, }, end: Position { line: 45, column: 37, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "!/var/spool/torque", span: Span { start: Position { line: 45, column: 41, }, end: Position { line: 45, column: 59, }, }, }, ), ], span: Span { start: Position { line: 45, column: 40, }, end: Position { line: 45, column: 60, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 40, }, end: Position { line: 46, 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: "torque-mom", span: Span { start: Position { line: 48, column: 22, }, end: Position { line: 48, column: 32, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 49, column: 7, }, end: Position { line: 49, column: 11, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "torque", span: Span { start: Position { line: 49, column: 16, }, end: Position { line: 49, column: 22, }, }, }, ), ], span: Span { start: Position { line: 49, column: 14, }, end: Position { line: 49, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 51, column: 21, }, end: Position { line: 51, column: 38, }, }, }, ), ], span: Span { start: Position { line: 51, column: 20, }, end: Position { line: 51, column: 39, }, }, }, ), ], span: Span { start: Position { line: 51, column: 18, }, end: Position { line: 51, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "requires", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "torque-mom-init.service", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 44, }, }, }, ), ], span: Span { start: Position { line: 52, column: 20, }, end: Position { line: 52, column: 45, }, }, }, ), ], span: Span { start: Position { line: 52, column: 18, }, end: Position { line: 52, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 53, column: 7, }, end: Position { line: 53, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "torque-mom-init.service", span: Span { start: Position { line: 53, column: 18, }, end: Position { line: 53, column: 41, }, }, }, ), ], span: Span { start: Position { line: 53, column: 17, }, end: Position { line: 53, column: 42, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "network.target", span: Span { start: Position { line: 53, column: 44, }, end: Position { line: 53, column: 58, }, }, }, ), ], span: Span { start: Position { line: 53, column: 43, }, end: Position { line: 53, column: 59, }, }, }, ), ], span: Span { start: Position { line: 53, column: 15, }, end: Position { line: 53, column: 61, }, }, }, ), }, ), 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: "Type", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "forking", span: Span { start: Position { line: 56, column: 17, }, end: Position { line: 56, column: 24, }, }, }, ), ], span: Span { start: Position { line: 56, column: 16, }, end: Position { line: 56, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 57, column: 9, }, end: Position { line: 57, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "torque", span: Span { start: Position { line: 57, column: 24, }, end: Position { line: 57, column: 30, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/pbs_mom", span: Span { start: Position { line: 57, column: 22, }, end: Position { line: 57, column: 43, }, }, }, ), ], span: Span { start: Position { line: 57, column: 21, }, end: Position { line: 57, column: 44, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PIDFile", span: Span { start: Position { line: 58, column: 9, }, end: Position { line: 58, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/var/spool/torque/mom_priv/mom.lock", span: Span { start: Position { line: 58, column: 20, }, end: Position { line: 58, column: 55, }, }, }, ), ], span: Span { start: Position { line: 58, column: 19, }, end: Position { line: 58, column: 56, }, }, }, ), }, ), ], span: Span { start: Position { line: 55, column: 23, }, end: Position { line: 59, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 48, column: 35, }, end: Position { line: 60, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 31, column: 28, }, end: Position { line: 62, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 1, }, end: Position { line: 63, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 63, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 63, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 63, column: 2, }, }, }, )