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, }, ], }, ), 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: "fonts", span: Span { start: Position { line: 7, column: 16, }, end: Position { line: 7, column: 21, }, }, }, ), Raw( PartRaw { content: "fontDir", span: Span { start: Position { line: 7, column: 22, }, end: Position { line: 7, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "x11Fonts", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 9, column: 14, }, end: Position { line: 9, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runCommand", span: Span { start: Position { line: 9, column: 19, }, end: Position { line: 9, column: 29, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "X11-fonts", span: Span { start: Position { line: 9, column: 31, }, end: Position { line: 9, column: 40, }, }, }, ), ], span: Span { start: Position { line: 9, column: 30, }, end: Position { line: 9, column: 41, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "preferLocalBuild", span: Span { start: Position { line: 9, column: 44, }, end: Position { line: 9, column: 60, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 9, column: 63, }, end: Position { line: 9, column: 67, }, }, }, ), }, ), ], span: Span { start: Position { line: 9, column: 42, }, end: Position { line: 9, column: 70, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p \"$out/share/X11/fonts\"\nfont_regexp='.*\\.\\(ttf\\|ttc\\|otf\\|pcf\\|pfa\\|pfb\\|bdf\\)\\(\\.gz\\)?'\nfind ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 12, column: 10, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 12, column: 12, }, end: Position { line: 12, column: 20, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 12, column: 21, }, end: Position { line: 12, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fonts", span: Span { start: Position { line: 12, column: 28, }, end: Position { line: 12, column: 33, }, }, }, ), Raw( PartRaw { content: "fonts", span: Span { start: Position { line: 12, column: 34, }, end: Position { line: 12, column: 39, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " -regex \"$font_regexp\" \\\n -exec ln -sf -t \"$out/share/X11/fonts\" '{}' \\;\ncd \"$out/share/X11/fonts\"\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 15, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 21, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 15, column: 22, }, end: Position { line: 15, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "decompressFonts", span: Span { start: Position { line: 15, column: 26, }, end: Position { line: 15, column: 41, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 16, column: 1, }, end: Position { line: 16, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 16, column: 9, }, end: Position { line: 16, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gzip", span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 18, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/gunzip -f *.gz\n", span: Span { start: Position { line: 16, column: 1, }, end: Position { line: 17, column: 5, }, }, }, ), ], span: Span { start: Position { line: 15, column: 42, }, end: Position { line: 17, column: 7, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 18, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "xorg", span: Span { start: Position { line: 18, column: 12, }, end: Position { line: 18, column: 16, }, }, }, ), Raw( PartRaw { content: "mkfontscale", span: Span { start: Position { line: 18, column: 17, }, end: Position { line: 18, column: 28, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/mkfontscale\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 19, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "xorg", span: Span { start: Position { line: 19, column: 12, }, end: Position { line: 19, column: 16, }, }, }, ), Raw( PartRaw { content: "mkfontdir", span: Span { start: Position { line: 19, column: 17, }, end: Position { line: 19, column: 26, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/mkfontdir\ncat $(find ", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 20, column: 16, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "xorg", span: Span { start: Position { line: 20, column: 23, }, end: Position { line: 20, column: 27, }, }, }, ), Raw( PartRaw { content: "fontalias", span: Span { start: Position { line: 20, column: 28, }, end: Position { line: 20, column: 37, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/ -name fonts.alias) >fonts.alias\n", span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 21, column: 3, }, }, }, ), ], span: Span { start: Position { line: 9, column: 71, }, end: Position { line: 21, column: 5, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 27, column: 3, }, end: Position { line: 27, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fonts", span: Span { start: Position { line: 28, column: 5, }, end: Position { line: 28, column: 10, }, }, }, ), Raw( PartRaw { content: "fontDir", span: Span { start: Position { line: 28, column: 11, }, end: Position { line: 28, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 30, column: 7, }, end: Position { line: 30, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 30, column: 16, }, end: Position { line: 30, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 31, column: 16, }, end: Position { line: 31, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 31, column: 22, }, end: Position { line: 31, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 32, column: 19, }, end: Position { line: 32, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 33, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 33, column: 23, }, end: Position { line: 33, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 33, column: 27, }, end: Position { line: 33, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to create a directory with links to all fonts in\n{file}`/run/current-system/sw/share/X11/fonts`.\n", span: Span { start: Position { line: 34, column: 1, }, end: Position { line: 36, column: 9, }, }, }, ), ], span: Span { start: Position { line: 33, column: 33, }, end: Position { line: 36, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 30, column: 25, }, end: Position { line: 37, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "decompressFonts", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 22, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 39, column: 25, }, end: Position { line: 39, column: 33, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 40, column: 16, }, end: Position { line: 40, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 41, column: 9, }, end: Position { line: 41, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 41, column: 19, }, end: Position { line: 41, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 41, column: 26, }, end: Position { line: 41, column: 34, }, }, }, ), Raw( PartRaw { content: "xwayland", span: Span { start: Position { line: 41, column: 35, }, end: Position { line: 41, column: 43, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 41, column: 44, }, end: Position { line: 41, column: 50, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 42, column: 9, }, end: Position { line: 42, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 42, column: 23, }, end: Position { line: 42, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "config.programs.xwayland.enable", span: Span { start: Position { line: 42, column: 42, }, end: Position { line: 42, column: 73, }, }, }, ), ], span: Span { start: Position { line: 42, column: 41, }, end: Position { line: 42, column: 74, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 43, column: 23, }, end: Position { line: 43, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 43, column: 27, }, end: Position { line: 43, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Whether to decompress fonts in\n{file}`/run/current-system/sw/share/X11/fonts`.\n", span: Span { start: Position { line: 44, column: 1, }, end: Position { line: 46, column: 9, }, }, }, ), ], span: Span { start: Position { line: 43, column: 33, }, end: Position { line: 46, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 39, column: 34, }, end: Position { line: 47, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 49, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 27, column: 13, }, end: Position { line: 50, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 52, column: 3, }, end: Position { line: 52, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 52, column: 12, }, end: Position { line: 52, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 54, column: 5, }, end: Position { line: 54, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 54, column: 17, }, end: Position { line: 54, column: 31, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "x11Fonts", span: Span { start: Position { line: 54, column: 36, }, end: Position { line: 54, column: 44, }, }, }, ), ], span: Span { start: Position { line: 54, column: 34, }, end: Position { line: 54, column: 46, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 55, column: 5, }, end: Position { line: 55, column: 16, }, }, }, ), Raw( PartRaw { content: "pathsToLink", span: Span { start: Position { line: 55, column: 17, }, end: Position { line: 55, column: 28, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/share/X11/fonts", span: Span { start: Position { line: 55, column: 34, }, end: Position { line: 55, column: 50, }, }, }, ), ], span: Span { start: Position { line: 55, column: 33, }, end: Position { line: 55, column: 51, }, }, }, ), ], span: Span { start: Position { line: 55, column: 31, }, end: Position { line: 55, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 57, column: 5, }, end: Position { line: 57, column: 13, }, }, }, ), Raw( PartRaw { content: "xserver", span: Span { start: Position { line: 57, column: 14, }, end: Position { line: 57, column: 21, }, }, }, ), Raw( PartRaw { content: "filesSection", span: Span { start: Position { line: 57, column: 22, }, end: Position { line: 57, column: 34, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "FontPath \"", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 58, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "x11Fonts", span: Span { start: Position { line: 58, column: 19, }, end: Position { line: 58, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: "/share/X11/fonts\"\n", span: Span { start: Position { line: 58, column: 1, }, end: Position { line: 59, column: 5, }, }, }, ), ], span: Span { start: Position { line: 57, column: 37, }, end: Position { line: 59, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 52, column: 28, }, end: Position { line: 61, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 63, column: 3, }, end: Position { line: 63, column: 10, }, }, }, ), ], to: List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkRenamedOptionModule", span: Span { start: Position { line: 64, column: 6, }, end: Position { line: 64, column: 27, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "fonts", span: Span { start: Position { line: 64, column: 31, }, end: Position { line: 64, column: 36, }, }, }, ), ], span: Span { start: Position { line: 64, column: 30, }, end: Position { line: 64, column: 37, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "enableFontDir", span: Span { start: Position { line: 64, column: 39, }, end: Position { line: 64, column: 52, }, }, }, ), ], span: Span { start: Position { line: 64, column: 38, }, end: Position { line: 64, column: 53, }, }, }, ), ], span: Span { start: Position { line: 64, column: 28, }, end: Position { line: 64, column: 55, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "fonts", span: Span { start: Position { line: 64, column: 59, }, end: Position { line: 64, column: 64, }, }, }, ), ], span: Span { start: Position { line: 64, column: 58, }, end: Position { line: 64, column: 65, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "fontDir", span: Span { start: Position { line: 64, column: 67, }, end: Position { line: 64, column: 74, }, }, }, ), ], span: Span { start: Position { line: 64, column: 66, }, end: Position { line: 64, column: 75, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 64, column: 77, }, end: Position { line: 64, column: 83, }, }, }, ), ], span: Span { start: Position { line: 64, column: 76, }, end: Position { line: 64, column: 84, }, }, }, ), ], span: Span { start: Position { line: 64, column: 56, }, end: Position { line: 64, column: 86, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 63, column: 13, }, end: Position { line: 65, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 25, column: 1, }, end: Position { line: 67, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 67, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 67, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 67, column: 2, }, }, }, )