Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "utils", 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: "freefall", span: Span { start: Position { line: 7, column: 25, }, end: Position { line: 7, column: 33, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 10, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 11, column: 11, }, end: Position { line: 11, column: 19, }, }, }, ), Raw( PartRaw { content: "freefall", span: Span { start: Position { line: 11, column: 20, }, end: Position { line: 11, column: 28, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 13, column: 14, }, end: Position { line: 13, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 14, column: 14, }, end: Position { line: 14, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 14, column: 20, }, end: Position { line: 14, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 15, column: 17, }, end: Position { line: 15, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 16, column: 21, }, end: Position { line: 16, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 16, column: 25, }, end: Position { line: 16, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to protect HP/Dell laptop hard drives (not SSDs) in free fall.\n", span: Span { start: Position { line: 17, column: 1, }, end: Position { line: 18, column: 7, }, }, }, ), ], span: Span { start: Position { line: 16, column: 31, }, end: Position { line: 18, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 23, }, end: Position { line: 19, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 21, column: 15, }, end: Position { line: 21, column: 23, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 22, column: 7, }, end: Position { line: 22, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 22, column: 14, }, end: Position { line: 22, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 22, column: 20, }, end: Position { line: 22, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 23, column: 17, }, end: Position { line: 23, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "freefall", span: Span { start: Position { line: 23, column: 22, }, end: Position { line: 23, column: 30, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 24, column: 21, }, end: Position { line: 24, column: 38, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.freefall", span: Span { start: Position { line: 24, column: 40, }, end: Position { line: 24, column: 53, }, }, }, ), ], span: Span { start: Position { line: 24, column: 39, }, end: Position { line: 24, column: 54, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 25, column: 7, }, end: Position { line: 25, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 25, column: 21, }, end: Position { line: 25, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 25, column: 25, }, end: Position { line: 25, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "freefall derivation to use.\n", span: Span { start: Position { line: 26, column: 1, }, end: Position { line: 27, column: 7, }, }, }, ), ], span: Span { start: Position { line: 25, column: 31, }, end: Position { line: 27, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 21, column: 24, }, end: Position { line: 28, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "devices", span: Span { start: Position { line: 30, column: 5, }, end: Position { line: 30, column: 12, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 30, column: 15, }, end: Position { line: 30, column: 23, }, }, }, ), 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: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 31, column: 14, }, end: Position { line: 31, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 31, column: 20, }, end: Position { line: 31, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 31, column: 27, }, end: Position { line: 31, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 31, column: 33, }, end: Position { line: 31, column: 36, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/dev/sda", span: Span { start: Position { line: 32, column: 20, }, end: Position { line: 32, column: 28, }, }, }, ), ], span: Span { start: Position { line: 32, column: 19, }, end: Position { line: 32, column: 29, }, }, }, ), ], span: Span { start: Position { line: 32, column: 17, }, end: Position { line: 32, column: 31, }, }, }, ), }, ), 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: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 33, column: 21, }, end: Position { line: 33, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 33, column: 25, }, end: Position { line: 33, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Device paths to all internal spinning hard drives.\n", span: Span { start: Position { line: 34, column: 1, }, end: Position { line: 35, column: 7, }, }, }, ), ], span: Span { start: Position { line: 33, column: 31, }, end: Position { line: 35, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 30, column: 24, }, end: Position { line: 36, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 31, }, end: Position { line: 38, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 40, column: 3, }, end: Position { line: 40, column: 9, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkService", span: Span { start: Position { line: 42, column: 5, }, end: Position { line: 42, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "dev", }, ), body: Assert( Assert { expression: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 43, column: 14, }, end: Position { line: 43, column: 17, }, }, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 43, column: 21, }, end: Position { line: 43, column: 23, }, }, }, ), }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dev'", span: Span { start: Position { line: 44, column: 11, }, end: Position { line: 44, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "utils", span: Span { start: Position { line: 44, column: 18, }, end: Position { line: 44, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "escapeSystemdPath", span: Span { start: Position { line: 44, column: 24, }, end: Position { line: 44, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "dev", span: Span { start: Position { line: 44, column: 42, }, end: Position { line: 44, column: 45, }, }, }, ), ], }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 20, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "freefall-", span: Span { start: Position { line: 45, column: 22, }, end: Position { line: 45, column: 38, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev'", span: Span { start: Position { line: 45, column: 33, }, end: Position { line: 45, column: 37, }, }, }, ), }, ), ], span: Span { start: Position { line: 45, column: 21, }, end: Position { line: 45, column: 39, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Free-fall protection for ", span: Span { start: Position { line: 46, column: 24, }, end: Position { line: 46, column: 55, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 46, column: 51, }, end: Position { line: 46, column: 54, }, }, }, ), }, ), ], span: Span { start: Position { line: 46, column: 23, }, end: Position { line: 46, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 14, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev'", span: Span { start: Position { line: 47, column: 22, }, end: Position { line: 47, column: 26, }, }, }, ), }, ), Raw( PartRaw { content: ".device", span: Span { start: Position { line: 47, column: 20, }, end: Position { line: 47, column: 34, }, }, }, ), ], span: Span { start: Position { line: 47, column: 19, }, end: Position { line: 47, column: 35, }, }, }, ), ], span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 48, column: 9, }, end: Position { line: 48, column: 17, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev'", span: Span { start: Position { line: 48, column: 25, }, end: Position { line: 48, column: 29, }, }, }, ), }, ), Raw( PartRaw { content: ".device", span: Span { start: Position { line: 48, column: 23, }, end: Position { line: 48, column: 37, }, }, }, ), ], span: Span { start: Position { line: 48, column: 22, }, end: Position { line: 48, column: 38, }, }, }, ), ], span: Span { start: Position { line: 48, column: 20, }, end: Position { line: 48, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 49, column: 9, }, end: Position { line: 49, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 50, column: 11, }, end: Position { line: 50, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 50, column: 26, }, end: Position { line: 50, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 50, column: 30, }, end: Position { line: 50, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/freefall ", span: Span { start: Position { line: 50, column: 24, }, end: Position { line: 50, column: 52, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "dev", span: Span { start: Position { line: 50, column: 54, }, end: Position { line: 50, column: 57, }, }, }, ), }, ), ], span: Span { start: Position { line: 50, column: 23, }, end: Position { line: 50, column: 59, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 51, column: 11, }, end: Position { line: 51, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on-failure", span: Span { start: Position { line: 51, column: 22, }, end: Position { line: 51, column: 32, }, }, }, ), ], span: Span { start: Position { line: 51, column: 21, }, end: Position { line: 51, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Type", span: Span { start: Position { line: 52, column: 11, }, end: Position { line: 52, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "forking", span: Span { start: Position { line: 52, column: 19, }, end: Position { line: 52, column: 26, }, }, }, ), ], span: Span { start: Position { line: 52, column: 18, }, end: Position { line: 52, column: 27, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 25, }, end: Position { line: 53, column: 10, }, }, }, ), }, ), ], span: Span { start: Position { line: 45, column: 40, }, end: Position { line: 54, column: 8, }, }, }, ), ], }, ), span: Span { start: Position { line: 44, column: 7, }, end: Position { line: 54, column: 8, }, }, }, ), span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 54, column: 8, }, }, }, ), span: Span { start: Position { line: 42, column: 17, }, end: Position { line: 54, column: 8, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 56, column: 6, }, end: Position { line: 56, column: 10, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 56, column: 11, }, end: Position { line: 56, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 56, column: 15, }, end: Position { line: 56, column: 21, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 58, column: 5, }, end: Position { line: 58, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 58, column: 17, }, end: Position { line: 58, column: 31, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 58, column: 36, }, end: Position { line: 58, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 58, column: 40, }, end: Position { line: 58, column: 47, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 58, column: 34, }, end: Position { line: 58, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 60, column: 5, }, end: Position { line: 60, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 60, column: 13, }, end: Position { line: 60, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 60, column: 24, }, end: Position { line: 60, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listToAttrs", span: Span { start: Position { line: 60, column: 33, }, end: Position { line: 60, column: 44, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 60, column: 46, }, end: Position { line: 60, column: 49, }, }, }, ), arguments: [ Identifier( Identifier { id: "mkService", span: Span { start: Position { line: 60, column: 50, }, end: Position { line: 60, column: 59, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 60, column: 60, }, end: Position { line: 60, column: 63, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "devices", span: Span { start: Position { line: 60, column: 64, }, end: Position { line: 60, column: 71, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 56, column: 22, }, end: Position { line: 62, column: 4, }, }, }, ), ], }, ), span: Span { start: Position { line: 40, column: 12, }, end: Position { line: 62, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 9, column: 4, }, end: Position { line: 64, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 64, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 64, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 64, column: 2, }, }, }, )