dotfiles/config/nix/modules/wireless.nix

15 lines
415 B
Nix
Raw Normal View History

2023-10-22 22:27:58 +02:00
{ 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"];
};
2023-10-22 22:27:58 +02:00
environment.systemPackages = with pkgs; [ wirelesstools ];
}