Skip to content

Commit b56afb9

Browse files
committed
Enable GIVC and logging for nvidia targets
Signed-off-by: vadik likholetov <vadikas@gmail.com>
1 parent 6e68cd6 commit b56afb9

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

targets/nvidia-jetson-orin/flake-module.nix

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: 2022-2026 TII (SSRC) and the Ghaf contributors
22
# SPDX-License-Identifier: Apache-2.0
33
#
4-
# Configuration for NVIDIA Jetson Orin AGX/NX
4+
# Configuration for NVIDIA Jetson Orin AGX/NX
55
#
66
{
77
lib,
@@ -42,6 +42,16 @@ let
4242
self.nixosModules.reference-host-demo-apps
4343
self.nixosModules.reference-profiles-orin
4444
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+
)
4555
];
4656

4757
# All Orin configurations using mkGhafConfiguration
@@ -166,11 +176,26 @@ let
166176

167177
generate-cross-from-x86_64 =
168178
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
169185
tgt
170186
// rec {
171187
name = tgt.name + "-from-x86_64";
172188
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+
];
174199
};
175200
package = hostConfiguration.config.system.build.${hostConfiguration.config.formatAttr};
176201
};

0 commit comments

Comments
 (0)