fix usb ssh

This commit is contained in:
Henry Hiles 2026-11-10 13:09:40 -05:00
commit cdcb349cf4
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -18,17 +18,15 @@
};
};
networking.networkmanager.ensureProfiles.profiles.usb-network = {
connection = {
id = "USB network";
type = "ethernet";
interface-name = "usb0";
};
ipv4 = {
method = "manual";
address1 = "172.16.42.1/24";
never-default = true;
};
ipv6.method = "disabled";
systemd.network.links."10-usb-gadget" = {
matchConfig.Type = "gadget";
linkConfig.Name = "usb0";
};
networking.interfaces.usb0.ipv4.addresses = [
{
address = "172.16.42.1";
prefixLength = 24;
}
];
}