Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "config", 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: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 10, }, }, }, ), ], to: List( List { elements: [ Path( Path { parts: [ Raw( PartRaw { content: "../../../modules/virtualisation/lxc-container.nix", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 54, }, }, }, ), ], span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 54, }, }, }, ), ], span: Span { start: Position { line: 6, column: 13, }, end: Position { line: 8, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "virtualisation", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 17, }, }, }, ), Raw( PartRaw { content: "lxc", span: Span { start: Position { line: 10, column: 18, }, end: Position { line: 10, column: 21, }, }, }, ), Raw( PartRaw { content: "templates", span: Span { start: Position { line: 10, column: 22, }, end: Position { line: 10, column: 31, }, }, }, ), Raw( PartRaw { content: "nix", span: Span { start: Position { line: 10, column: 32, }, end: Position { line: 10, column: 35, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 11, column: 5, }, end: Position { line: 11, column: 11, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 11, column: 18, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "target", span: Span { start: Position { line: 12, column: 5, }, end: Position { line: 12, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/etc/nixos/lxd.nix", span: Span { start: Position { line: 12, column: 15, }, end: Position { line: 12, column: 33, }, }, }, ), ], span: Span { start: Position { line: 12, column: 14, }, end: Position { line: 12, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "template", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 13, }, }, }, ), ], to: Path( Path { parts: [ Raw( PartRaw { content: "./nix.tpl", span: Span { start: Position { line: 13, column: 16, }, end: Position { line: 13, column: 25, }, }, }, ), ], span: Span { start: Position { line: 13, column: 16, }, end: Position { line: 13, column: 25, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "when", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 9, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "create", span: Span { start: Position { line: 14, column: 15, }, end: Position { line: 14, column: 21, }, }, }, ), ], span: Span { start: Position { line: 14, column: 14, }, end: Position { line: 14, column: 22, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "copy", span: Span { start: Position { line: 14, column: 24, }, end: Position { line: 14, column: 28, }, }, }, ), ], span: Span { start: Position { line: 14, column: 23, }, end: Position { line: 14, column: 29, }, }, }, ), ], span: Span { start: Position { line: 14, column: 12, }, end: Position { line: 14, column: 31, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 38, }, end: Position { line: 15, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 18, column: 3, }, end: Position { line: 18, column: 9, }, }, }, ), Raw( PartRaw { content: "activationScripts", span: Span { start: Position { line: 18, column: 10, }, end: Position { line: 18, column: 27, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 18, column: 28, }, end: Position { line: 18, column: 34, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "if [ ! -e /etc/nixos/configuration.nix ]; then\n mkdir -p /etc/nixos\n cat ", span: Span { start: Position { line: 19, column: 1, }, end: Position { line: 21, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: Path( Path { parts: [ Raw( PartRaw { content: "./lxd-image-inner.nix", span: Span { start: Position { line: 21, column: 13, }, end: Position { line: 21, column: 34, }, }, }, ), ], span: Span { start: Position { line: 21, column: 13, }, end: Position { line: 21, column: 34, }, }, }, ), }, ), Raw( PartRaw { content: " > /etc/nixos/configuration.nix\n sed 's|../../../modules/virtualisation/lxc-container.nix||g' -i /etc/nixos/configuration.nix\nfi\n", span: Span { start: Position { line: 19, column: 1, }, end: Position { line: 24, column: 3, }, }, }, ), ], span: Span { start: Position { line: 18, column: 37, }, end: Position { line: 24, column: 5, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 27, column: 3, }, end: Position { line: 27, column: 13, }, }, }, ), Raw( PartRaw { content: "useDHCP", span: Span { start: Position { line: 27, column: 14, }, end: Position { line: 27, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 27, column: 24, }, end: Position { line: 27, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 28, column: 3, }, end: Position { line: 28, column: 13, }, }, }, ), Raw( PartRaw { content: "interfaces", span: Span { start: Position { line: 28, column: 14, }, end: Position { line: 28, column: 24, }, }, }, ), Raw( PartRaw { content: "eth0", span: Span { start: Position { line: 28, column: 25, }, end: Position { line: 28, column: 29, }, }, }, ), Raw( PartRaw { content: "useDHCP", span: Span { start: Position { line: 28, column: 30, }, end: Position { line: 28, column: 37, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 28, column: 40, }, end: Position { line: 28, column: 44, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "documentation", span: Span { start: Position { line: 31, column: 3, }, end: Position { line: 31, column: 16, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 31, column: 17, }, end: Position { line: 31, column: 23, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 31, column: 26, }, end: Position { line: 31, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "documentation", span: Span { start: Position { line: 32, column: 3, }, end: Position { line: 32, column: 16, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 32, column: 17, }, end: Position { line: 32, column: 22, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 32, column: 23, }, end: Position { line: 32, column: 29, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 32, column: 32, }, end: Position { line: 32, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 33, column: 3, }, end: Position { line: 33, column: 14, }, }, }, ), Raw( PartRaw { content: "noXlibs", span: Span { start: Position { line: 33, column: 15, }, end: Position { line: 33, column: 22, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 33, column: 25, }, end: Position { line: 33, column: 30, }, }, }, ), }, ), ], span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 34, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 34, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 34, column: 2, }, }, }, )