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: 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: "programs", span: Span { start: Position { line: 4, column: 16, }, end: Position { line: 4, column: 24, }, }, }, ), Raw( PartRaw { content: "captive-browser", span: Span { start: Position { line: 4, column: 25, }, end: Position { line: 4, column: 40, }, }, }, ), ], default: None, }, ), }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 6, column: 12, }, end: Position { line: 6, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "concatStringsSep", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 21, }, }, }, ), Raw( PartRaw { content: "escapeShellArgs", span: Span { start: Position { line: 7, column: 22, }, end: Position { line: 7, column: 37, }, }, }, ), Raw( PartRaw { content: "optionalString", span: Span { start: Position { line: 7, column: 38, }, end: Position { line: 7, column: 52, }, }, }, ), Raw( PartRaw { content: "literalExpression", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 22, }, }, }, ), Raw( PartRaw { content: "mkEnableOption", span: Span { start: Position { line: 8, column: 23, }, end: Position { line: 8, column: 37, }, }, }, ), Raw( PartRaw { content: "mkIf", span: Span { start: Position { line: 8, column: 38, }, end: Position { line: 8, column: 42, }, }, }, ), Raw( PartRaw { content: "mkOption", span: Span { start: Position { line: 8, column: 43, }, end: Position { line: 8, column: 51, }, }, }, ), Raw( PartRaw { content: "mkOptionDefault", span: Span { start: Position { line: 8, column: 52, }, end: Position { line: 8, column: 67, }, }, }, ), Raw( PartRaw { content: "types", span: Span { start: Position { line: 8, column: 68, }, end: Position { line: 8, column: 73, }, }, }, ), ], span: Span { start: Position { line: 3, column: 4, }, end: Position { line: 8, column: 74, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "browserDefault", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "chromium", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 10, column: 30, }, end: Position { line: 10, column: 46, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 10, column: 48, }, end: Position { line: 10, column: 49, }, }, }, ), ], span: Span { start: Position { line: 10, column: 47, }, end: Position { line: 10, column: 50, }, }, }, ), List( List { elements: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "env XDG_CONFIG_HOME=\"$PREV_CONFIG_HOME\"", span: Span { start: Position { line: 11, column: 7, }, end: Position { line: 11, column: 46, }, }, }, ), ], span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 48, }, }, }, ), IndentedString( IndentedString { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "chromium", span: Span { start: Position { line: 12, column: 9, }, end: Position { line: 12, column: 17, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/chromium", span: Span { start: Position { line: 12, column: 7, }, end: Position { line: 12, column: 31, }, }, }, ), ], span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 33, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "--user-data-dir=", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 23, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 26, }, }, }, ), Raw( PartRaw { content: "{XDG_DATA_HOME:-$HOME/.local/share}/chromium-captive", span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 13, column: 78, }, }, }, ), ], span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 80, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "--proxy-server=\"socks5://$PROXY\"", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 39, }, }, }, ), ], span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 41, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "--host-resolver-rules=\"MAP * ~NOTFOUND , EXCLUDE localhost\"", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 66, }, }, }, ), ], span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 68, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "--no-first-run", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 21, }, }, }, ), ], span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 23, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "--new-window", span: Span { start: Position { line: 17, column: 7, }, end: Position { line: 17, column: 19, }, }, }, ), ], span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 21, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "--incognito", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 18, }, }, }, ), ], span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 20, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "-no-default-browser-check", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 32, }, }, }, ), ], span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 34, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "http://cache.nixos.org/", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 30, }, }, }, ), ], span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 32, }, }, }, ), ], span: Span { start: Position { line: 10, column: 51, }, end: Position { line: 21, column: 4, }, }, }, ), ], }, ), span: Span { start: Position { line: 10, column: 20, }, end: Position { line: 21, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "desktopItem", span: Span { start: Position { line: 23, column: 3, }, end: Position { line: 23, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: 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: "makeDesktopItem", span: Span { start: Position { line: 23, column: 22, }, end: Position { line: 23, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 24, column: 5, }, end: Position { line: 24, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "captive-browser", span: Span { start: Position { line: 24, column: 13, }, end: Position { line: 24, column: 28, }, }, }, ), ], span: Span { start: Position { line: 24, column: 12, }, end: Position { line: 24, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "desktopName", span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 25, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Captive Portal Browser", span: Span { start: Position { line: 25, column: 20, }, end: Position { line: 25, column: 42, }, }, }, ), ], span: Span { start: Position { line: 25, column: 19, }, end: Position { line: 25, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "exec", span: Span { start: Position { line: 26, column: 5, }, end: Position { line: 26, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/wrappers/bin/captive-browser", span: Span { start: Position { line: 26, column: 13, }, end: Position { line: 26, column: 46, }, }, }, ), ], span: Span { start: Position { line: 26, column: 12, }, end: Position { line: 26, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "icon", span: Span { start: Position { line: 27, column: 5, }, end: Position { line: 27, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nix-snowflake", span: Span { start: Position { line: 27, column: 13, }, end: Position { line: 27, column: 26, }, }, }, ), ], span: Span { start: Position { line: 27, column: 12, }, end: Position { line: 27, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "categories", span: Span { start: Position { line: 28, column: 5, }, end: Position { line: 28, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "Network", span: Span { start: Position { line: 28, column: 21, }, end: Position { line: 28, column: 28, }, }, }, ), ], span: Span { start: Position { line: 28, column: 20, }, end: Position { line: 28, column: 29, }, }, }, ), ], span: Span { start: Position { line: 28, column: 18, }, end: Position { line: 28, column: 31, }, }, }, ), }, ), ], span: Span { start: Position { line: 23, column: 38, }, end: Position { line: 29, column: 4, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 35, column: 3, }, end: Position { line: 35, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 36, column: 13, }, }, }, ), Raw( PartRaw { content: "captive-browser", span: Span { start: Position { line: 36, column: 14, }, end: Position { line: 36, column: 29, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 37, column: 7, }, end: Position { line: 37, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 37, column: 16, }, end: Position { line: 37, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 37, column: 32, }, end: Position { line: 37, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 37, column: 36, }, end: Position { line: 37, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "captive browser", span: Span { start: Position { line: 37, column: 43, }, end: Position { line: 37, column: 58, }, }, }, ), ], span: Span { start: Position { line: 37, column: 42, }, end: Position { line: 37, column: 59, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 39, column: 17, }, end: Position { line: 39, column: 25, }, }, }, ), 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: "package", span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 29, }, }, }, ), ], 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: "pkgs", span: Span { start: Position { line: 41, column: 19, }, end: Position { line: 41, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "captive-browser", span: Span { start: Position { line: 41, column: 24, }, end: Position { line: 41, column: 39, }, }, }, ), ], 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: "pkgs.captive-browser", span: Span { start: Position { line: 42, column: 42, }, end: Position { line: 42, column: 62, }, }, }, ), ], span: Span { start: Position { line: 42, column: 41, }, end: Position { line: 42, column: 63, }, }, }, ), ], }, ), }, ), 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: [ String( String_ { parts: [ Raw( PartRaw { content: "Which package to use for captive-browser", span: Span { start: Position { line: 43, column: 34, }, end: Position { line: 43, column: 74, }, }, }, ), ], span: Span { start: Position { line: 43, column: 33, }, end: Position { line: 43, column: 75, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 39, column: 26, }, end: Position { line: 44, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "interface", span: Span { start: Position { line: 46, column: 7, }, end: Position { line: 46, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 46, column: 19, }, end: Position { line: 46, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 47, column: 16, }, end: Position { line: 47, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 47, column: 22, }, end: Position { line: 47, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 48, column: 9, }, end: Position { line: 48, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 48, column: 23, }, end: Position { line: 48, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 48, column: 27, }, end: Position { line: 48, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "your public network interface (wlp3s0, wlan0, eth0, ...)", span: Span { start: Position { line: 48, column: 34, }, end: Position { line: 48, column: 90, }, }, }, ), ], span: Span { start: Position { line: 48, column: 33, }, end: Position { line: 48, column: 91, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 46, column: 28, }, end: Position { line: 49, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "browser", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 53, column: 9, }, end: Position { line: 53, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 53, column: 16, }, end: Position { line: 53, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 53, column: 22, }, end: Position { line: 53, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 54, column: 9, }, end: Position { line: 54, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "browserDefault", span: Span { start: Position { line: 54, column: 19, }, end: Position { line: 54, column: 33, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 54, column: 34, }, end: Position { line: 54, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "chromium", span: Span { start: Position { line: 54, column: 39, }, end: Position { line: 54, column: 47, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 55, column: 23, }, end: Position { line: 55, column: 40, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "browserDefault", span: Span { start: Position { line: 55, column: 42, }, end: Position { line: 55, column: 56, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "${pkgs.chromium}", span: Span { start: Position { line: 55, column: 58, }, end: Position { line: 55, column: 75, }, }, }, ), ], span: Span { start: Position { line: 55, column: 57, }, end: Position { line: 55, column: 76, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 56, column: 9, }, end: Position { line: 56, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 56, column: 23, }, end: Position { line: 56, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 56, column: 27, }, end: Position { line: 56, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The shell (/bin/sh) command executed once the proxy starts.\nWhen browser exits, the proxy exits. An extra env var PROXY is available.\n\nHere, we use a separate Chrome instance in Incognito mode, so that\nit can run (and be waited for) alongside the default one, and that\nit maintains no state across runs. To configure this browser open a\nnormal window in it, settings will be preserved.\n\n@volth: chromium is to open a plain HTTP (not HTTPS nor redirect to HTTPS!) website.\n upstream uses http://example.com but I have seen captive portals whose DNS server resolves \"example.com\" to 127.0.0.1\n", span: Span { start: Position { line: 57, column: 1, }, end: Position { line: 67, column: 9, }, }, }, ), ], span: Span { start: Position { line: 56, column: 33, }, end: Position { line: 67, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 52, column: 26, }, end: Position { line: 68, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dhcp-dns", span: Span { start: Position { line: 70, column: 7, }, end: Position { line: 70, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 70, column: 18, }, end: Position { line: 70, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 71, column: 9, }, end: Position { line: 71, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 71, column: 16, }, end: Position { line: 71, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 71, column: 22, }, end: Position { line: 71, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 72, column: 9, }, end: Position { line: 72, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 72, column: 23, }, end: Position { line: 72, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 72, column: 27, }, end: Position { line: 72, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The shell (/bin/sh) command executed to obtain the DHCP\nDNS server address. The first match of an IPv4 regex is used.\nIPv4 only, because let's be real, it's a captive portal.\n", span: Span { start: Position { line: 73, column: 1, }, end: Position { line: 76, column: 9, }, }, }, ), ], span: Span { start: Position { line: 72, column: 33, }, end: Position { line: 76, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 70, column: 27, }, end: Position { line: 77, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "socks5-addr", span: Span { start: Position { line: 79, column: 7, }, end: Position { line: 79, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 79, column: 21, }, end: Position { line: 79, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 80, column: 9, }, end: Position { line: 80, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 80, column: 16, }, end: Position { line: 80, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 80, column: 22, }, end: Position { line: 80, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 81, column: 9, }, end: Position { line: 81, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "localhost:1666", span: Span { start: Position { line: 81, column: 20, }, end: Position { line: 81, column: 34, }, }, }, ), ], span: Span { start: Position { line: 81, column: 19, }, end: Position { line: 81, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 82, column: 9, }, end: Position { line: 82, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 82, column: 23, }, end: Position { line: 82, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 82, column: 27, }, end: Position { line: 82, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "the listen address for the SOCKS5 proxy server", span: Span { start: Position { line: 82, column: 34, }, end: Position { line: 82, column: 80, }, }, }, ), ], span: Span { start: Position { line: 82, column: 33, }, end: Position { line: 82, column: 81, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 79, column: 30, }, end: Position { line: 83, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "bindInterface", span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 85, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 85, column: 23, }, end: Position { line: 85, column: 31, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 86, column: 9, }, end: Position { line: 86, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 86, column: 19, }, end: Position { line: 86, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 87, column: 9, }, end: Position { line: 87, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 87, column: 16, }, end: Position { line: 87, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 87, column: 22, }, end: Position { line: 87, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 88, column: 9, }, end: Position { line: 88, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 88, column: 23, }, end: Position { line: 88, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 88, column: 27, }, end: Position { line: 88, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Binds `captive-browser` to the network interface declared in\n`cfg.interface`. This can be used to avoid collisions\nwith private subnets.\n", span: Span { start: Position { line: 89, column: 1, }, end: Position { line: 92, column: 9, }, }, }, ), ], span: Span { start: Position { line: 88, column: 33, }, end: Position { line: 92, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 85, column: 32, }, end: Position { line: 93, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 36, column: 32, }, end: Position { line: 94, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 35, column: 13, }, end: Position { line: 95, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 99, column: 3, }, end: Position { line: 99, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 99, column: 12, }, end: Position { line: 99, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 99, column: 17, }, end: Position { line: 99, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 99, column: 21, }, end: Position { line: 99, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 100, column: 5, }, end: Position { line: 100, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 100, column: 17, }, end: Position { line: 100, column: 31, }, }, }, ), ], to: List( List { elements: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 101, column: 8, }, end: Position { line: 101, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runCommand", span: Span { start: Position { line: 101, column: 13, }, end: Position { line: 101, column: 23, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "captive-browser-desktop-item", span: Span { start: Position { line: 101, column: 25, }, end: Position { line: 101, column: 53, }, }, }, ), ], span: Span { start: Position { line: 101, column: 24, }, end: Position { line: 101, column: 54, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 101, column: 55, }, end: Position { line: 101, column: 58, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "install -Dm444 -t $out/share/applications ", span: Span { start: Position { line: 102, column: 1, }, end: Position { line: 102, column: 51, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "desktopItem", span: Span { start: Position { line: 102, column: 53, }, end: Position { line: 102, column: 64, }, }, }, ), }, ), Raw( PartRaw { content: "/share/applications/*.desktop\n", span: Span { start: Position { line: 102, column: 1, }, end: Position { line: 103, column: 7, }, }, }, ), ], span: Span { start: Position { line: 101, column: 59, }, end: Position { line: 103, column: 9, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 100, column: 34, }, end: Position { line: 104, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 106, column: 5, }, end: Position { line: 106, column: 13, }, }, }, ), Raw( PartRaw { content: "captive-browser", span: Span { start: Position { line: 106, column: 14, }, end: Position { line: 106, column: 29, }, }, }, ), Raw( PartRaw { content: "dhcp-dns", span: Span { start: Position { line: 106, column: 30, }, end: Position { line: 106, column: 38, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "iface", span: Span { start: Position { line: 108, column: 9, }, end: Position { line: 108, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "prefixes", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 109, column: 11, }, end: Position { line: 109, column: 25, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 109, column: 26, }, end: Position { line: 109, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bindInterface", span: Span { start: Position { line: 109, column: 30, }, end: Position { line: 109, column: 43, }, }, }, ), ], default: None, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "escapeShellArgs", span: Span { start: Position { line: 109, column: 45, }, end: Position { line: 109, column: 60, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "prefixes", span: Span { start: Position { line: 109, column: 62, }, end: Position { line: 109, column: 70, }, }, }, ), operator: Concatenation, right: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 109, column: 76, }, end: Position { line: 109, column: 79, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "interface", span: Span { start: Position { line: 109, column: 80, }, end: Position { line: 109, column: 89, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 109, column: 74, }, end: Position { line: 109, column: 91, }, }, }, ), }, ), ], }, ), ], }, ), span: Span { start: Position { line: 108, column: 17, }, end: Position { line: 109, column: 93, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionDefault", span: Span { start: Position { line: 111, column: 7, }, end: Position { line: 111, column: 22, }, }, }, ), arguments: [ IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 112, column: 12, }, end: Position { line: 112, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 112, column: 19, }, end: Position { line: 112, column: 29, }, }, }, ), Raw( PartRaw { content: "networkmanager", span: Span { start: Position { line: 112, column: 30, }, end: Position { line: 112, column: 44, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 112, column: 45, }, end: Position { line: 112, column: 51, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 113, column: 14, }, end: Position { line: 113, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "networkmanager", span: Span { start: Position { line: 113, column: 19, }, end: Position { line: 113, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/nmcli dev show ", span: Span { start: Position { line: 113, column: 12, }, end: Position { line: 113, column: 54, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "iface", span: Span { start: Position { line: 113, column: 56, }, end: Position { line: 113, column: 61, }, }, }, ), arguments: [ List( List { elements: [], span: Span { start: Position { line: 113, column: 62, }, end: Position { line: 113, column: 64, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " | ", span: Span { start: Position { line: 113, column: 12, }, end: Position { line: 113, column: 68, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 113, column: 70, }, end: Position { line: 113, column: 74, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gnugrep", span: Span { start: Position { line: 113, column: 75, }, end: Position { line: 113, column: 82, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/fgrep IP4.DNS", span: Span { start: Position { line: 113, column: 12, }, end: Position { line: 113, column: 101, }, }, }, ), ], span: Span { start: Position { line: 113, column: 11, }, end: Position { line: 113, column: 102, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 114, column: 17, }, end: Position { line: 114, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 114, column: 24, }, end: Position { line: 114, column: 34, }, }, }, ), Raw( PartRaw { content: "dhcpcd", span: Span { start: Position { line: 114, column: 35, }, end: Position { line: 114, column: 41, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 114, column: 42, }, end: Position { line: 114, column: 48, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 115, column: 14, }, end: Position { line: 115, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dhcpcd", span: Span { start: Position { line: 115, column: 19, }, end: Position { line: 115, column: 25, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/dhcpcd ", span: Span { start: Position { line: 115, column: 12, }, end: Position { line: 115, column: 38, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "iface", span: Span { start: Position { line: 115, column: 40, }, end: Position { line: 115, column: 45, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "-U", span: Span { start: Position { line: 115, column: 48, }, end: Position { line: 115, column: 50, }, }, }, ), ], span: Span { start: Position { line: 115, column: 47, }, end: Position { line: 115, column: 51, }, }, }, ), ], span: Span { start: Position { line: 115, column: 46, }, end: Position { line: 115, column: 52, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " | ", span: Span { start: Position { line: 115, column: 12, }, end: Position { line: 115, column: 56, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 115, column: 58, }, end: Position { line: 115, column: 62, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "gnugrep", span: Span { start: Position { line: 115, column: 63, }, end: Position { line: 115, column: 70, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/fgrep domain_name_servers", span: Span { start: Position { line: 115, column: 12, }, end: Position { line: 115, column: 101, }, }, }, ), ], span: Span { start: Position { line: 115, column: 11, }, end: Position { line: 115, column: 102, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 116, column: 17, }, end: Position { line: 116, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 116, column: 24, }, end: Position { line: 116, column: 34, }, }, }, ), Raw( PartRaw { content: "useNetworkd", span: Span { start: Position { line: 116, column: 35, }, end: Position { line: 116, column: 46, }, }, }, ), ], default: None, }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 117, column: 14, }, end: Position { line: 117, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 117, column: 18, }, end: Position { line: 117, column: 25, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/systemd-networkd-dns ", span: Span { start: Position { line: 117, column: 12, }, end: Position { line: 117, column: 52, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "iface", span: Span { start: Position { line: 117, column: 54, }, end: Position { line: 117, column: 59, }, }, }, ), arguments: [ List( List { elements: [], span: Span { start: Position { line: 117, column: 60, }, end: Position { line: 117, column: 62, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 117, column: 11, }, end: Position { line: 117, column: 64, }, }, }, ), else_: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 119, column: 14, }, end: Position { line: 119, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "security", span: Span { start: Position { line: 119, column: 21, }, end: Position { line: 119, column: 29, }, }, }, ), Raw( PartRaw { content: "wrapperDir", span: Span { start: Position { line: 119, column: 30, }, end: Position { line: 119, column: 40, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/udhcpc --quit --now -f ", span: Span { start: Position { line: 119, column: 12, }, end: Position { line: 119, column: 65, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "iface", span: Span { start: Position { line: 119, column: 67, }, end: Position { line: 119, column: 72, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "-i", span: Span { start: Position { line: 119, column: 75, }, end: Position { line: 119, column: 77, }, }, }, ), ], span: Span { start: Position { line: 119, column: 74, }, end: Position { line: 119, column: 78, }, }, }, ), ], span: Span { start: Position { line: 119, column: 73, }, end: Position { line: 119, column: 79, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " -O dns --script ", span: Span { start: Position { line: 119, column: 12, }, end: Position { line: 119, column: 97, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 120, column: 11, }, end: Position { line: 120, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeShellScript", span: Span { start: Position { line: 120, column: 16, }, end: Position { line: 120, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "udhcp-script", span: Span { start: Position { line: 120, column: 34, }, end: Position { line: 120, column: 46, }, }, }, ), ], span: Span { start: Position { line: 120, column: 33, }, end: Position { line: 120, column: 47, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "if [ \"$1\" = bound ]; then\n echo \"$dns\"\nfi\n", span: Span { start: Position { line: 121, column: 1, }, end: Position { line: 124, column: 11, }, }, }, ), ], span: Span { start: Position { line: 120, column: 48, }, end: Position { line: 124, column: 13, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 119, column: 11, }, end: Position { line: 124, column: 15, }, }, }, ), span: Span { start: Position { line: 116, column: 14, }, end: Position { line: 124, column: 15, }, }, }, ), span: Span { start: Position { line: 114, column: 14, }, end: Position { line: 124, column: 15, }, }, }, ), span: Span { start: Position { line: 112, column: 9, }, end: Position { line: 124, column: 15, }, }, }, ), ], }, ), span: Span { start: Position { line: 107, column: 7, }, end: Position { line: 125, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "security", span: Span { start: Position { line: 127, column: 5, }, end: Position { line: 127, column: 13, }, }, }, ), Raw( PartRaw { content: "wrappers", span: Span { start: Position { line: 127, column: 14, }, end: Position { line: 127, column: 22, }, }, }, ), Raw( PartRaw { content: "udhcpc", span: Span { start: Position { line: 127, column: 23, }, end: Position { line: 127, column: 29, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "owner", span: Span { start: Position { line: 128, column: 7, }, end: Position { line: 128, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 128, column: 16, }, end: Position { line: 128, column: 20, }, }, }, ), ], span: Span { start: Position { line: 128, column: 15, }, end: Position { line: 128, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 129, column: 7, }, end: Position { line: 129, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 129, column: 16, }, end: Position { line: 129, column: 20, }, }, }, ), ], span: Span { start: Position { line: 129, column: 15, }, end: Position { line: 129, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "capabilities", span: Span { start: Position { line: 130, column: 7, }, end: Position { line: 130, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "cap_net_raw+p", span: Span { start: Position { line: 130, column: 23, }, end: Position { line: 130, column: 36, }, }, }, ), ], span: Span { start: Position { line: 130, column: 22, }, end: Position { line: 130, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "source", span: Span { start: Position { line: 131, column: 7, }, end: Position { line: 131, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 131, column: 19, }, end: Position { line: 131, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "busybox", span: Span { start: Position { line: 131, column: 24, }, end: Position { line: 131, column: 31, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/udhcpc", span: Span { start: Position { line: 131, column: 17, }, end: Position { line: 131, column: 43, }, }, }, ), ], span: Span { start: Position { line: 131, column: 16, }, end: Position { line: 131, column: 44, }, }, }, ), }, ), ], span: Span { start: Position { line: 127, column: 32, }, end: Position { line: 132, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "security", span: Span { start: Position { line: 134, column: 5, }, end: Position { line: 134, column: 13, }, }, }, ), Raw( PartRaw { content: "wrappers", span: Span { start: Position { line: 134, column: 14, }, end: Position { line: 134, column: 22, }, }, }, ), Raw( PartRaw { content: "captive-browser", span: Span { start: Position { line: 134, column: 23, }, end: Position { line: 134, column: 38, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "owner", span: Span { start: Position { line: 135, column: 7, }, end: Position { line: 135, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 135, column: 16, }, end: Position { line: 135, column: 20, }, }, }, ), ], span: Span { start: Position { line: 135, column: 15, }, end: Position { line: 135, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 136, column: 7, }, end: Position { line: 136, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 136, column: 16, }, end: Position { line: 136, column: 20, }, }, }, ), ], span: Span { start: Position { line: 136, column: 15, }, end: Position { line: 136, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "capabilities", span: Span { start: Position { line: 137, column: 7, }, end: Position { line: 137, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "cap_net_raw+p", span: Span { start: Position { line: 137, column: 23, }, end: Position { line: 137, column: 36, }, }, }, ), ], span: Span { start: Position { line: 137, column: 22, }, end: Position { line: 137, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "source", span: Span { start: Position { line: 138, column: 7, }, end: Position { line: 138, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 138, column: 16, }, end: Position { line: 138, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeShellScript", span: Span { start: Position { line: 138, column: 21, }, end: Position { line: 138, column: 37, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "captive-browser", span: Span { start: Position { line: 138, column: 39, }, end: Position { line: 138, column: 54, }, }, }, ), ], span: Span { start: Position { line: 138, column: 38, }, end: Position { line: 138, column: 55, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "export PREV_CONFIG_HOME=\"$XDG_CONFIG_HOME\"\nexport XDG_CONFIG_HOME=", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 140, column: 32, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 140, column: 34, }, end: Position { line: 140, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeTextDir", span: Span { start: Position { line: 140, column: 39, }, end: Position { line: 140, column: 51, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "captive-browser.toml", span: Span { start: Position { line: 140, column: 53, }, end: Position { line: 140, column: 73, }, }, }, ), ], span: Span { start: Position { line: 140, column: 52, }, end: Position { line: 140, column: 74, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "browser = \"\"\"", span: Span { start: Position { line: 141, column: 1, }, end: Position { line: 141, column: 48, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 141, column: 50, }, end: Position { line: 141, column: 53, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "browser", span: Span { start: Position { line: 141, column: 54, }, end: Position { line: 141, column: 61, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\"\"\"\ndhcp-dns = \"\"\"", span: Span { start: Position { line: 141, column: 1, }, end: Position { line: 142, column: 49, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 142, column: 51, }, end: Position { line: 142, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dhcp-dns", span: Span { start: Position { line: 142, column: 55, }, end: Position { line: 142, column: 63, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\"\"\"\nsocks5-addr = \"\"\"", span: Span { start: Position { line: 141, column: 1, }, end: Position { line: 143, column: 52, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 143, column: 54, }, end: Position { line: 143, column: 57, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "socks5-addr", span: Span { start: Position { line: 143, column: 58, }, end: Position { line: 143, column: 69, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\"\"\"\n", span: Span { start: Position { line: 141, column: 1, }, end: Position { line: 144, column: 35, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 144, column: 37, }, end: Position { line: 144, column: 51, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 144, column: 52, }, end: Position { line: 144, column: 55, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bindInterface", span: Span { start: Position { line: 144, column: 56, }, end: Position { line: 144, column: 69, }, }, }, ), ], default: None, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "bind-device = \"\"\"", span: Span { start: Position { line: 145, column: 1, }, end: Position { line: 145, column: 54, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 145, column: 56, }, end: Position { line: 145, column: 59, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "interface", span: Span { start: Position { line: 145, column: 60, }, end: Position { line: 145, column: 69, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\"\"\"\n", span: Span { start: Position { line: 145, column: 1, }, end: Position { line: 146, column: 35, }, }, }, ), ], span: Span { start: Position { line: 144, column: 70, }, end: Position { line: 146, column: 37, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 141, column: 1, }, end: Position { line: 147, column: 33, }, }, }, ), ], span: Span { start: Position { line: 140, column: 75, }, end: Position { line: 147, column: 35, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\nexec ", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 148, column: 14, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 148, column: 16, }, end: Position { line: 148, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 148, column: 20, }, end: Position { line: 148, column: 27, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/captive-browser\n", span: Span { start: Position { line: 139, column: 1, }, end: Position { line: 149, column: 7, }, }, }, ), ], span: Span { start: Position { line: 138, column: 56, }, end: Position { line: 149, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 134, column: 41, }, end: Position { line: 150, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 99, column: 28, }, end: Position { line: 151, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 32, column: 1, }, end: Position { line: 152, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 152, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 152, column: 2, }, }, }, )