pureintetn: wifi stuff

This commit is contained in:
Sridhar Ratnakumar 2026-05-12 17:59:39 -04:00
parent af2404e6e5
commit bb8b8aa76c

View file

@ -28,6 +28,21 @@
# Enable networking
networking.networkmanager.enable = true;
# Wired (enp1s0) and Wi-Fi (drapeau/wlp2s0) are on the same LAN. Letting both
# autoconnect causes ARP flux: the gateway's neighbor entry for our IP flips
# between the two NIC MACs and the Ethernet path goes silently dead.
# See docs/LINUX-INTERNET-ISSUES.md.
systemd.services.nm-drapeau-noautoconnect = {
description = "Disable autoconnect on drapeau Wi-Fi profile";
after = [ "NetworkManager.service" ];
wants = [ "NetworkManager.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "oneshot";
script = ''
${pkgs.networkmanager}/bin/nmcli connection modify drapeau connection.autoconnect no || true
'';
};
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";