Skip to content

Commit b897227

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

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

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

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ let
2929
self.nixosModules.reference-host-demo-apps
3030
self.nixosModules.reference-profiles-orin
3131
self.nixosModules.profiles
32+
(
33+
{ config, ... }:
34+
{
35+
ghaf.logging = {
36+
enable = lib.mkForce true;
37+
server.endpoint = lib.mkForce "https://loki.ghaflogs.vedenemo.dev/loki/api/v1/push";
38+
listener.address = lib.mkForce config.ghaf.networking.hosts.admin-vm.ipv4;
39+
};
40+
}
41+
)
3242
];
3343

3444
# concatinate modules that are specific to a target
@@ -119,11 +129,22 @@ let
119129

120130
generate-cross-from-x86_64 =
121131
tgt:
132+
let
133+
enableGivcForAgxDebug = builtins.elem tgt.name [
134+
"nvidia-jetson-orin-agx-debug"
135+
"nvidia-jetson-orin-agx-debug-nodemoapps"
136+
];
137+
in
122138
tgt
123139
// rec {
124140
name = tgt.name + "-from-x86_64";
125141
hostConfiguration = tgt.hostConfiguration.extendModules {
126-
modules = [ self.nixosModules.cross-compilation-from-x86_64 ];
142+
modules = [ self.nixosModules.cross-compilation-from-x86_64 ] ++ lib.optionals enableGivcForAgxDebug [
143+
{
144+
ghaf.givc.enable = lib.mkForce true;
145+
ghaf.givc.debug = lib.mkForce false;
146+
}
147+
];
127148
};
128149
package = hostConfiguration.config.system.build.${hostConfiguration.config.formatAttr};
129150
};

0 commit comments

Comments
 (0)