mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
Run the upstream NixOS wpa_supplicant module under system-manager through a compat shim. system-manager already reuses nixpkgs' systemdUtils, environment.etc and userborn, so the unit, the generated config and the wpa_supplicant user come out unchanged; only four NixOS-only options needed stubbing, two of which are re-expressed on top of environment.etc. Extract the wireless config to hosts/wireless.nix so both trees share one source: they sit at the same depth, so every path resolves identically. electra's generated wpa_supplicant.conf is now byte-identical to atlas' except for the country line. Take over networkd from netplan on electra with the same generic match rules NixOS uses, which also covers ethernet and USB tethering, neither of which was configured before. netplan is neutered by masking its generator rather than uninstalling it, since purging netplan.io would take cloud-init, ubuntu-minimal and ubuntu-server-minimal with it. Assisted-by: pi (claude-opus-5)
8 lines
98 B
Nix
8 lines
98 B
Nix
{...}: {
|
|
imports = [../../../wireless.nix];
|
|
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
};
|
|
}
|