Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "lib", span: Span { start: Position { line: 11, column: 12, }, end: Position { line: 11, column: 15, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "mkIf", span: Span { start: Position { line: 11, column: 17, }, end: Position { line: 11, column: 21, }, }, }, ), Raw( PartRaw { content: "mkDefault", span: Span { start: Position { line: 11, column: 22, }, end: Position { line: 11, column: 31, }, }, }, ), ], span: Span { start: Position { line: 10, column: 4, }, end: Position { line: 11, column: 32, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 13, column: 3, }, end: Position { line: 13, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 13, column: 16, }, end: Position { line: 13, column: 24, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 13, column: 25, }, end: Position { line: 13, column: 42, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "command", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 10, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 15, column: 16, }, end: Position { line: 15, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 15, column: 20, }, end: Position { line: 15, column: 27, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/bin/hercules-ci-agent --config ", span: Span { start: Position { line: 15, column: 14, }, end: Position { line: 15, column: 60, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 15, column: 62, }, end: Position { line: 15, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "tomlFile", span: Span { start: Position { line: 15, column: 66, }, end: Position { line: 15, column: 74, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 15, column: 13, }, end: Position { line: 15, column: 76, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "testCommand", span: Span { start: Position { line: 16, column: 3, }, end: Position { line: 16, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "command", span: Span { start: Position { line: 16, column: 20, }, end: Position { line: 16, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: " --test-configuration", span: Span { start: Position { line: 16, column: 18, }, end: Position { line: 16, column: 49, }, }, }, ), ], span: Span { start: Position { line: 16, column: 17, }, end: Position { line: 16, column: 50, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 20, column: 3, }, end: Position { line: 20, column: 10, }, }, }, ), ], to: List( List { elements: [ Path( Path { parts: [ Raw( PartRaw { content: "./common.nix", span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 17, }, }, }, ), ], span: Span { start: Position { line: 21, column: 5, }, end: Position { line: 21, column: 17, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 22, column: 6, }, end: Position { line: 22, column: 9, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkRenamedOptionModule", span: Span { start: Position { line: 22, column: 10, }, end: Position { line: 22, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 22, column: 35, }, end: Position { line: 22, column: 43, }, }, }, ), ], span: Span { start: Position { line: 22, column: 34, }, end: Position { line: 22, column: 44, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 22, column: 46, }, end: Position { line: 22, column: 63, }, }, }, ), ], span: Span { start: Position { line: 22, column: 45, }, end: Position { line: 22, column: 64, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "user", span: Span { start: Position { line: 22, column: 66, }, end: Position { line: 22, column: 70, }, }, }, ), ], span: Span { start: Position { line: 22, column: 65, }, end: Position { line: 22, column: 71, }, }, }, ), ], span: Span { start: Position { line: 22, column: 32, }, end: Position { line: 22, column: 73, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 22, column: 77, }, end: Position { line: 22, column: 84, }, }, }, ), ], span: Span { start: Position { line: 22, column: 76, }, end: Position { line: 22, column: 85, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 22, column: 87, }, end: Position { line: 22, column: 95, }, }, }, ), ], span: Span { start: Position { line: 22, column: 86, }, end: Position { line: 22, column: 96, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 22, column: 98, }, end: Position { line: 22, column: 115, }, }, }, ), ], span: Span { start: Position { line: 22, column: 97, }, end: Position { line: 22, column: 116, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 22, column: 118, }, end: Position { line: 22, column: 131, }, }, }, ), ], span: Span { start: Position { line: 22, column: 117, }, end: Position { line: 22, column: 132, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 22, column: 134, }, end: Position { line: 22, column: 138, }, }, }, ), ], span: Span { start: Position { line: 22, column: 133, }, end: Position { line: 22, column: 139, }, }, }, ), ], span: Span { start: Position { line: 22, column: 74, }, end: Position { line: 22, column: 141, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 20, column: 13, }, end: Position { line: 23, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 25, column: 3, }, end: Position { line: 25, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 25, column: 12, }, end: Position { line: 25, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 25, column: 17, }, end: Position { line: 25, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 25, column: 21, }, end: Position { line: 25, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 26, column: 5, }, end: Position { line: 26, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 26, column: 13, }, end: Position { line: 26, column: 21, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 26, column: 22, }, end: Position { line: 26, column: 39, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 27, column: 21, }, end: Position { line: 27, column: 38, }, }, }, ), ], span: Span { start: Position { line: 27, column: 20, }, end: Position { line: 27, column: 39, }, }, }, ), ], span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "after", span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 28, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network-online.target", span: Span { start: Position { line: 28, column: 18, }, end: Position { line: 28, column: 39, }, }, }, ), ], span: Span { start: Position { line: 28, column: 17, }, end: Position { line: 28, column: 40, }, }, }, ), ], span: Span { start: Position { line: 28, column: 15, }, end: Position { line: 28, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wants", span: Span { start: Position { line: 29, column: 7, }, end: Position { line: 29, column: 12, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "network-online.target", span: Span { start: Position { line: 29, column: 18, }, end: Position { line: 29, column: 39, }, }, }, ), ], span: Span { start: Position { line: 29, column: 17, }, end: Position { line: 29, column: 40, }, }, }, ), ], span: Span { start: Position { line: 29, column: 15, }, end: Position { line: 29, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 30, column: 7, }, end: Position { line: 30, column: 11, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 30, column: 16, }, end: Position { line: 30, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nix", span: Span { start: Position { line: 30, column: 23, }, end: Position { line: 30, column: 26, }, }, }, ), Raw( PartRaw { content: "package", span: Span { start: Position { line: 30, column: 27, }, end: Position { line: 30, column: 34, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 30, column: 14, }, end: Position { line: 30, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "startLimitBurst", span: Span { start: Position { line: 31, column: 7, }, end: Position { line: 31, column: 22, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Integer( Integer { value: "30", span: Span { start: Position { line: 31, column: 25, }, end: Position { line: 31, column: 27, }, }, }, ), operator: Multiplication, right: Integer( Integer { value: "1000000", span: Span { start: Position { line: 31, column: 30, }, end: Position { line: 31, column: 37, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 32, column: 7, }, end: Position { line: 32, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 33, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 33, column: 17, }, end: Position { line: 33, column: 34, }, }, }, ), ], span: Span { start: Position { line: 33, column: 16, }, end: Position { line: 33, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStart", span: Span { start: Position { line: 34, column: 9, }, end: Position { line: 34, column: 18, }, }, }, ), ], to: Identifier( Identifier { id: "command", span: Span { start: Position { line: 34, column: 21, }, end: Position { line: 34, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "ExecStartPre", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 21, }, }, }, ), ], to: Identifier( Identifier { id: "testCommand", span: Span { start: Position { line: 35, column: 24, }, end: Position { line: 35, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "on-failure", span: Span { start: Position { line: 36, column: 20, }, end: Position { line: 36, column: 30, }, }, }, ), ], span: Span { start: Position { line: 36, column: 19, }, end: Position { line: 36, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RestartSec", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 19, }, }, }, ), ], to: Integer( Integer { value: "120", span: Span { start: Position { line: 37, column: 22, }, end: Position { line: 37, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 32, column: 23, }, end: Position { line: 38, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 26, column: 42, }, end: Position { line: 39, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 43, column: 5, }, end: Position { line: 43, column: 12, }, }, }, ), Raw( PartRaw { content: "paths", span: Span { start: Position { line: 43, column: 13, }, end: Position { line: 43, column: 18, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent-restart-files", span: Span { start: Position { line: 43, column: 19, }, end: Position { line: 43, column: 50, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 44, column: 7, }, end: Position { line: 44, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "hercules-ci-agent.service", span: Span { start: Position { line: 44, column: 21, }, end: Position { line: 44, column: 46, }, }, }, ), ], span: Span { start: Position { line: 44, column: 20, }, end: Position { line: 44, column: 47, }, }, }, ), ], span: Span { start: Position { line: 44, column: 18, }, end: Position { line: 44, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathConfig", span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 45, column: 17, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Unit", span: Span { start: Position { line: 46, column: 9, }, end: Position { line: 46, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hercules-ci-agent-restarter.service", span: Span { start: Position { line: 46, column: 17, }, end: Position { line: 46, column: 52, }, }, }, ), ], span: Span { start: Position { line: 46, column: 16, }, end: Position { line: 46, column: 53, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "PathChanged", span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 47, column: 20, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 25, }, end: Position { line: 47, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 47, column: 29, }, end: Position { line: 47, column: 37, }, }, }, ), Raw( PartRaw { content: "clusterJoinTokenPath", span: Span { start: Position { line: 47, column: 38, }, end: Position { line: 47, column: 58, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 59, }, end: Position { line: 47, column: 62, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 47, column: 63, }, end: Position { line: 47, column: 71, }, }, }, ), Raw( PartRaw { content: "binaryCachesPath", span: Span { start: Position { line: 47, column: 72, }, end: Position { line: 47, column: 88, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 47, column: 23, }, end: Position { line: 47, column: 90, }, }, }, ), }, ), ], span: Span { start: Position { line: 45, column: 20, }, end: Position { line: 48, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 43, column: 53, }, end: Position { line: 49, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 50, column: 13, }, end: Position { line: 50, column: 21, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent-restarter", span: Span { start: Position { line: 50, column: 22, }, end: Position { line: 50, column: 49, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 20, }, }, }, ), Raw( PartRaw { content: "Type", span: Span { start: Position { line: 51, column: 21, }, end: Position { line: 51, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "oneshot", span: Span { start: Position { line: 51, column: 29, }, end: Position { line: 51, column: 36, }, }, }, ), ], span: Span { start: Position { line: 51, column: 28, }, end: Position { line: 51, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "script", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 13, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "# Wait a bit, with the effect of bundling up file changes into a single\n# run of this script and hopefully a single restart.\nsleep 10\nif systemctl is-active --quiet hercules-ci-agent.service; then\n if ", span: Span { start: Position { line: 53, column: 1, }, end: Position { line: 57, column: 14, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "testCommand", span: Span { start: Position { line: 57, column: 16, }, end: Position { line: 57, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: "; then\n systemctl restart hercules-ci-agent.service\n else\n echo 1>&2 \"WARNING: Not restarting agent because config is not valid at this time.\"\n fi\nelse\n echo 1>&2 \"Not restarting hercules-ci-agent despite config file update, because it is not already active.\"\nfi\n", span: Span { start: Position { line: 53, column: 1, }, end: Position { line: 65, column: 7, }, }, }, ), ], span: Span { start: Position { line: 52, column: 16, }, end: Position { line: 65, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 50, column: 52, }, end: Position { line: 66, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nix", span: Span { start: Position { line: 70, column: 5, }, end: Position { line: 70, column: 8, }, }, }, ), Raw( PartRaw { content: "settings", span: Span { start: Position { line: 70, column: 9, }, end: Position { line: 70, column: 17, }, }, }, ), Raw( PartRaw { content: "trusted-users", span: Span { start: Position { line: 70, column: 18, }, end: Position { line: 70, column: 31, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 70, column: 36, }, end: Position { line: 70, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 70, column: 43, }, end: Position { line: 70, column: 50, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 70, column: 51, }, end: Position { line: 70, column: 59, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 70, column: 60, }, end: Position { line: 70, column: 77, }, }, }, ), Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 70, column: 78, }, end: Position { line: 70, column: 91, }, }, }, ), Raw( PartRaw { content: "User", span: Span { start: Position { line: 70, column: 92, }, end: Position { line: 70, column: 96, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 70, column: 34, }, end: Position { line: 70, column: 98, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 71, column: 5, }, end: Position { line: 71, column: 13, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 71, column: 14, }, end: Position { line: 71, column: 31, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 72, column: 7, }, end: Position { line: 72, column: 15, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixUserIsTrusted", span: Span { start: Position { line: 73, column: 9, }, end: Position { line: 73, column: 25, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 73, column: 28, }, end: Position { line: 73, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "labels", span: Span { start: Position { line: 74, column: 9, }, end: Position { line: 74, column: 15, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mkIfNotNull", span: Span { start: Position { line: 76, column: 13, }, end: Position { line: 76, column: 24, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 76, column: 30, }, end: Position { line: 76, column: 34, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "x", span: Span { start: Position { line: 76, column: 36, }, end: Position { line: 76, column: 37, }, }, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 76, column: 41, }, end: Position { line: 76, column: 45, }, }, }, ), }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 76, column: 47, }, end: Position { line: 76, column: 48, }, }, }, ), ], }, ), span: Span { start: Position { line: 76, column: 27, }, end: Position { line: 76, column: 48, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 79, column: 13, }, end: Position { line: 79, column: 18, }, }, }, ), Raw( PartRaw { content: "configurationRevision", span: Span { start: Position { line: 79, column: 19, }, end: Position { line: 79, column: 40, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIfNotNull", span: Span { start: Position { line: 79, column: 43, }, end: Position { line: 79, column: 54, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 79, column: 55, }, end: Position { line: 79, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 79, column: 62, }, end: Position { line: 79, column: 68, }, }, }, ), Raw( PartRaw { content: "configurationRevision", span: Span { start: Position { line: 79, column: 69, }, end: Position { line: 79, column: 90, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 80, column: 13, }, end: Position { line: 80, column: 18, }, }, }, ), Raw( PartRaw { content: "release", span: Span { start: Position { line: 80, column: 19, }, end: Position { line: 80, column: 26, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 80, column: 29, }, end: Position { line: 80, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 80, column: 36, }, end: Position { line: 80, column: 42, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 80, column: 43, }, end: Position { line: 80, column: 48, }, }, }, ), Raw( PartRaw { content: "release", span: Span { start: Position { line: 80, column: 49, }, end: Position { line: 80, column: 56, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 81, column: 13, }, end: Position { line: 81, column: 18, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 81, column: 19, }, end: Position { line: 81, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIfNotNull", span: Span { start: Position { line: 81, column: 27, }, end: Position { line: 81, column: 38, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 81, column: 39, }, end: Position { line: 81, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 81, column: 46, }, end: Position { line: 81, column: 52, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 81, column: 53, }, end: Position { line: 81, column: 58, }, }, }, ), Raw( PartRaw { content: "label", span: Span { start: Position { line: 81, column: 59, }, end: Position { line: 81, column: 64, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 82, column: 13, }, end: Position { line: 82, column: 18, }, }, }, ), Raw( PartRaw { content: "codeName", span: Span { start: Position { line: 82, column: 19, }, end: Position { line: 82, column: 27, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 82, column: 30, }, end: Position { line: 82, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 82, column: 37, }, end: Position { line: 82, column: 43, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 82, column: 44, }, end: Position { line: 82, column: 49, }, }, }, ), Raw( PartRaw { content: "codeName", span: Span { start: Position { line: 82, column: 50, }, end: Position { line: 82, column: 58, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 83, column: 13, }, end: Position { line: 83, column: 18, }, }, }, ), Raw( PartRaw { content: "tags", span: Span { start: Position { line: 83, column: 19, }, end: Position { line: 83, column: 23, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 83, column: 26, }, end: Position { line: 83, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 83, column: 33, }, end: Position { line: 83, column: 39, }, }, }, ), Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 83, column: 40, }, end: Position { line: 83, column: 45, }, }, }, ), Raw( PartRaw { content: "tags", span: Span { start: Position { line: 83, column: 46, }, end: Position { line: 83, column: 50, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixos", span: Span { start: Position { line: 84, column: 13, }, end: Position { line: 84, column: 18, }, }, }, ), Raw( PartRaw { content: "systemName", span: Span { start: Position { line: 84, column: 19, }, end: Position { line: 84, column: 29, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIfNotNull", span: Span { start: Position { line: 84, column: 32, }, end: Position { line: 84, column: 43, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 84, column: 44, }, end: Position { line: 84, column: 50, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 84, column: 51, }, end: Position { line: 84, column: 57, }, }, }, ), Raw( PartRaw { content: "name", span: Span { start: Position { line: 84, column: 58, }, end: Position { line: 84, column: 62, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 78, column: 11, }, end: Position { line: 85, column: 12, }, }, }, ), span: Span { start: Position { line: 75, column: 11, }, end: Position { line: 85, column: 12, }, }, }, ), }, ), ], span: Span { start: Position { line: 72, column: 18, }, end: Position { line: 86, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 71, column: 34, }, end: Position { line: 87, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 89, column: 5, }, end: Position { line: 89, column: 10, }, }, }, ), Raw( PartRaw { content: "users", span: Span { start: Position { line: 89, column: 11, }, end: Position { line: 89, column: 16, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 89, column: 17, }, end: Position { line: 89, column: 34, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "home", span: Span { start: Position { line: 90, column: 7, }, end: Position { line: 90, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 90, column: 14, }, end: Position { line: 90, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "settings", span: Span { start: Position { line: 90, column: 18, }, end: Position { line: 90, column: 26, }, }, }, ), Raw( PartRaw { content: "baseDirectory", span: Span { start: Position { line: 90, column: 27, }, end: Position { line: 90, column: 40, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "createHome", span: Span { start: Position { line: 91, column: 7, }, end: Position { line: 91, column: 17, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 91, column: 20, }, end: Position { line: 91, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 92, column: 7, }, end: Position { line: 92, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 92, column: 16, }, end: Position { line: 92, column: 33, }, }, }, ), ], span: Span { start: Position { line: 92, column: 15, }, end: Position { line: 92, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 93, column: 7, }, end: Position { line: 93, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Hercules CI Agent system user", span: Span { start: Position { line: 93, column: 22, }, end: Position { line: 93, column: 51, }, }, }, ), ], span: Span { start: Position { line: 93, column: 21, }, end: Position { line: 93, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isSystemUser", span: Span { start: Position { line: 94, column: 7, }, end: Position { line: 94, column: 19, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 94, column: 22, }, end: Position { line: 94, column: 26, }, }, }, ), }, ), ], span: Span { start: Position { line: 89, column: 37, }, end: Position { line: 95, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 97, column: 5, }, end: Position { line: 97, column: 10, }, }, }, ), Raw( PartRaw { content: "groups", span: Span { start: Position { line: 97, column: 11, }, end: Position { line: 97, column: 17, }, }, }, ), Raw( PartRaw { content: "hercules-ci-agent", span: Span { start: Position { line: 97, column: 18, }, end: Position { line: 97, column: 35, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 97, column: 38, }, end: Position { line: 97, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 25, column: 28, }, end: Position { line: 98, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 100, column: 3, }, end: Position { line: 100, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 100, column: 8, }, end: Position { line: 100, column: 19, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 100, column: 24, }, end: Position { line: 100, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 100, column: 28, }, end: Position { line: 100, column: 39, }, }, }, ), Raw( PartRaw { content: "roberth", span: Span { start: Position { line: 100, column: 40, }, end: Position { line: 100, column: 47, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 100, column: 22, }, end: Position { line: 100, column: 49, }, }, }, ), }, ), ], span: Span { start: Position { line: 19, column: 1, }, end: Position { line: 101, column: 2, }, }, }, ), span: Span { start: Position { line: 10, column: 1, }, end: Position { line: 101, column: 2, }, }, }, ), span: Span { start: Position { line: 9, column: 1, }, end: Position { line: 101, column: 2, }, }, }, )