The issue is i can not connect it normally with nm-applet nor nmtui. here is my code, And i want to do bridge network with lan connection ethernet and i also want to use nm-applet also i want to connect to wifi as normally it bridge gets turned off then no problem but it should get turned on after i connect to ethernet.
{
# Enable NetworkManager
networking = {
networkmanager.enable = true;
# Disable wpa_supplicant (conflicts with NetworkManager)
wireless.enable = false;
# Enable IPv6
enableIPv6 = true;
# Important: Don't use networking.bridges when using NetworkManager
# bridges = {}; # Remove this if you had it
# Make sure dhcpcd doesn't interfere
dhcpcd.enable = false;
# Disable systemd-networkd as it conflicts with NetworkManager
useNetworkd = false;
};
# Add your user to the networkmanager group
users.users.Linux-DADDY = {
extraGroups = ["networkmanager"];
};
# NetworkManager configuration
networking.networkmanager = {
wifi = {
backend = "wpa_supplicant";
powersave = false;
macAddress = "random";
};
enableStrongSwan = false;
ethernet.macAddress = "random";
# Bridge profiles with proper UUIDs and settings
ensureProfiles.profiles = {
"bridge-br0" = {
connection = {
id = "bridge-br0";
uuid = "114262d0-c7bf-4bf7-81ca-795eaf9b50f1";
type = "bridge";
interface-name = "br0";
autoconnect = true;
autoconnect-priority = 100;
};
bridge = {
# Bridge-specific settings
stp = false; # Spanning Tree Protocol
forward-delay = 0;
hello-time = 2;
max-age = 20;
};
ipv4 = {
method = "auto"; # Get IP via DHCP
};
ipv6 = {
method = "auto";
};
};
"bridge-slave-ethernet" = {
connection = {
id = "bridge-slave-ethernet";
uuid = "1a3e7e93-e8fc-4f54-97ff-5f006243ec3a";
type = "ethernet";
slave-type = "bridge";
master = "12345678-1234-1234-1234-123456789abc"; # Reference bridge UUID
interface-name = "enp2s0"; # Make sure this matches your interface
autoconnect = true;
autoconnect-priority = 10;
};
# No IP configuration for slave
};
};
settings = {
main = {
no-auto-default = "*";
};
connection = {
autoconnect-retries = 3;
};
};
};
# systemd-resolved configuration
services = {
resolved = {
enable = true;
# Your NextDNS config (commented out)
#extraConfig = ''
#'';
};
};
# Enable nm-applet for GUI management
programs.nm-applet.enable = true;
# TailScale (commented out)
#services.tailscale.enable = true;
}
Sorry for repost, I uploaded my nextdns ID that time so i had to delete that post.