atrium-network
One Rust executable provides a GTK4 GUI, a CLI and a privileged network service. Both clients use the same local API. Closing a client leaves connections running. The service manages wpa_supplicant, dhcpcd, WireGuard, OpenVPN and openresolv.
The GUI is an ordinary floating window. Wi-Fi, VPN and Ethernet have stable rows with expandable details; virtual interfaces are in diagnostics. Close, Escape or the compositor’s close-window shortcut dismiss it. The shell’s optional Network widget displays status and opens the application.
Build and installation
Build dependencies include Rust/Cargo, Make, a C linker, pkg-config and GTK4 development libraries. The runit installation renderer also requires Python 3. Runtime packages include GTK4, system D-Bus, wpa_supplicant, dhcpcd, wireguard-tools, OpenVPN, openresolv, iproute2 and util-linux. There is no gtk4-layer-shell dependency.
make build
doas make install
PREFIX defaults to /usr; DESTDIR stages the payload. Installation copies the prebuilt executable, runit definition and daemon-configuration templates. It does not restart network services. Authored runit policy is preserved, with a replacement supplied for review. INSTALL_RUNIT=0 omits runit integration for other distribution packages.
Service and activation
The runit service runs atrium-network service as root. Its socket is /run/atrium-network/control.sock, mode 0660, owned by root:network. GUI and CLI processes run as the user. Membership in network grants system-wide network administration, including access to saved credentials.
An administrator must create the group if absent, add the intended user, and enable /etc/sv/atrium-network under /var/service. A fresh login is needed for changed group membership. The run script waits for D-Bus and dhcpcd.
Inspect atrium-network connections and confirm adoption of the existing physical profile before running doas make configure-services. That operation prepares service-owned wpa_supplicant and dhcpcd activation for the next boot. Restarting network daemons can interrupt remote access; use a verified rollback path when the connection carries the session.
Persistent profiles and bundled credentials live under /etc/atrium-network/profiles, with a private directory and mode-0600 files. The service adopts saved supplicant networks; it retains a backup before removing their represented network blocks from the daemon’s file. dhcpcd uses -M --inactive so the service selects active adapters.
Connections and commands
Wi-Fi supports open, WPA2, WPA3, hidden and enterprise configurations. Ethernet supports multiple adapters. Physical profiles include addressing, DNS, routes, metric and automatic connection priority.
atrium-network
atrium-network status --json
atrium-network watch --json
atrium-network connections
atrium-network scan wlan0
atrium-network import ./office.conf
atrium-network import ./travel.ovpn
atrium-network connect office
atrium-network disconnect office
atrium-network reconnect office
WireGuard imports wg-quick configuration and reports each tunnel’s handshake age and transfer totals. Externally started tunnels are visible; atrium-network adopt INTERFACE imports /etc/wireguard/INTERFACE.conf without restarting the tunnel. An active interface alone does not prove a completed handshake.
OpenVPN uses its management socket for state, credential prompts and shutdown. The service applies and removes VPN DNS through openresolv, including cleanup after an unclean OpenVPN exit. Unsupported executable hooks, plugins and configuration includes are rejected explicitly.
Saved changes apply on reconnect. autoconnect controls automatic activation; start_at_boot permits activation before a desktop client connects. Interactive credentials leave a connection pending until answered. Profile exports can contain credentials and must remain private.
Verification boundary
The repository’s integration tier uses disposable namespaces with real network tools. GUI checks use an isolated compositor. Physical WPA2/WPA3/EAP authentication, adapter hotplug, suspend/resume and an installed-system reboot require hardware acceptance. See the repository README for the complete API, activation procedure and verification requirements.