|
1 | 1 | # SPDX-FileCopyrightText: 2022-2026 TII (SSRC) and the Ghaf contributors |
2 | 2 | # SPDX-License-Identifier: Apache-2.0 |
3 | 3 | # |
4 | | -# Configuration for NVIDIA Jetson Orin AGX/NX |
| 4 | +# Configuration for NVIDIA Jetson Orin AGX/NX |
5 | 5 | # |
6 | 6 | { |
7 | 7 | lib, |
|
42 | 42 | self.nixosModules.reference-host-demo-apps |
43 | 43 | self.nixosModules.reference-profiles-orin |
44 | 44 | self.nixosModules.profiles |
| 45 | + ( |
| 46 | + { config, ... }: |
| 47 | + { |
| 48 | + ghaf.logging = { |
| 49 | + enable = lib.mkForce true; |
| 50 | + server.endpoint = lib.mkForce "https://loki.ghaflogs.vedenemo.dev/loki/api/v1/push"; |
| 51 | + listener.address = lib.mkForce config.ghaf.networking.hosts.admin-vm.ipv4; |
| 52 | + }; |
| 53 | + } |
| 54 | + ) |
45 | 55 | ]; |
46 | 56 |
|
47 | 57 | # All Orin configurations using mkGhafConfiguration |
@@ -166,11 +176,26 @@ let |
166 | 176 |
|
167 | 177 | generate-cross-from-x86_64 = |
168 | 178 | tgt: |
| 179 | + let |
| 180 | + enableGivcForAgxDebug = builtins.elem tgt.name [ |
| 181 | + "nvidia-jetson-orin-agx-debug" |
| 182 | + "nvidia-jetson-orin-agx-debug-nodemoapps" |
| 183 | + ]; |
| 184 | + in |
169 | 185 | tgt |
170 | 186 | // rec { |
171 | 187 | name = tgt.name + "-from-x86_64"; |
172 | 188 | hostConfiguration = tgt.hostConfiguration.extendModules { |
173 | | - modules = [ self.nixosModules.cross-compilation-from-x86_64 ]; |
| 189 | + modules = [ |
| 190 | + self.nixosModules.cross-compilation-from-x86_64 |
| 191 | + ] |
| 192 | + ++ lib.optionals enableGivcForAgxDebug [ |
| 193 | + { |
| 194 | + ghaf.givc.enable = lib.mkForce true; |
| 195 | + ghaf.givc.debug = lib.mkForce false; |
| 196 | + ghaf.global-config.givc.enable = lib.mkForce true; |
| 197 | + } |
| 198 | + ]; |
174 | 199 | }; |
175 | 200 | package = hostConfiguration.config.system.build.${hostConfiguration.config.formatAttr}; |
176 | 201 | }; |
|
0 commit comments