CHANGES: NetworkManager to systemd-networkd

This commit is contained in:
DuN0z 2025-10-04 09:46:20 +02:00
parent bb18183277
commit fd9f5e202c
6 changed files with 41 additions and 20 deletions

View file

@ -1,8 +1,7 @@
_: {
networking = {
networkmanager.enable = true;
nameservers = ["1.1.1.1" "8.8.8.8"];
dhcpcd.extraConfig = "nohook resolv.conf";
# dhcpcd.extraConfig = "nohook resolv.conf";
firewall.enable = true;
interfaces.enp11s0.wakeOnLan.enable = true ;
};

View file

@ -28,14 +28,6 @@
};
users.users.lomig.extraGroups = ["libvirtd" "kvm" "input"];
networking = {
useDHCP = false;
};
systemd.network.networks."10-br0" = {
matchConfig.Name = "br0";
networkConfig.DHCP = "yes";
};
environment.etc."qemu/bridge.conf".text = ''
allow br0

View file

@ -42,8 +42,8 @@
# -----------------------------------------------------------------
# 3⃣ Ouverture du firewall (ports 80 et 443)
# -----------------------------------------------------------------
networking.firewall.allowedTCPPorts = [
80 # HTTP (pour la redirection ACME)
443 # HTTPS (site final)
];
# networking.firewall.allowedTCPPorts = [
# 80 # HTTP (pour la redirection ACME)
# 443 # HTTPS (site final)
# ];
}