Geoffrey Frogeye
c37a709b01
It's, uh, a bit ugly. But let's try to make it work for now, improve later. Apparently my wpa_supplicant config file was visible for everyone already, so that's not a regression :D
15 lines
415 B
Nix
15 lines
415 B
Nix
{ pkgs, ... }:
|
|
{
|
|
# wireless support via wpa_supplicant
|
|
# TODO This doesn't change anything, at least in the VM
|
|
networking.wireless = {
|
|
enable = true;
|
|
networks = builtins.fromJSON ./wireless/networks.json; # If this file doesn't exist, run ./wireless/import.py
|
|
extraConfig = ''
|
|
country=NL
|
|
'';
|
|
interfaces = ["eth0"];
|
|
};
|
|
environment.systemPackages = with pkgs; [ wirelesstools ];
|
|
}
|