Skip to content

Commit

Permalink
AGX nmcli for netvm
Browse files Browse the repository at this point in the history
Remove unwanted visual NeworkManager plugins preventing cross compilation
Added nmcli to netvm

Signed-off-by: Emrah Billur <[email protected]>
  • Loading branch information
emrahbillur committed Sep 18, 2024
1 parent cfcfe93 commit f37a682
Showing 1 changed file with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
{ lib, config, ... }:
{
lib,
config,
pkgs,
...
}:
let
cfg = config.ghaf.hardware.nvidia.orin.agx;
in
Expand All @@ -18,6 +23,44 @@ in
path = "0001:01:00.0";
}
];
environment.systemPackages = [
pkgs.networkmanager
(lib.mkIf config.ghaf.profiles.debug.enable pkgs.tcpdump)
];
networking = {
# wireless is disabled because we use NetworkManager for wireless
wireless.enable = lib.mkForce false;
networkmanager = {
enable = true;
plugins = lib.mkForce [ ];
unmanaged = [ "ethint0" ];
};
};
environment = {
# noXlibs=false; needed for NetworkManager stuff
noXlibs = false;

etc."NetworkManager/system-connections/Wifi-1.nmconnection" = {
text = ''
[connection]
id=Wifi-1
uuid=33679db6-4cde-11ee-be56-0242ac120002
type=wifi
[wifi]
mode=infrastructure
ssid=SSID_OF_NETWORK
[wifi-security]
key-mgmt=wpa-psk
psk=WPA_PASSWORD
[ipv4]
method=auto
[ipv6]
method=disabled
[proxy]
'';
mode = "0600";
};
};
}
];

Expand Down

0 comments on commit f37a682

Please sign in to comment.