dotfiles/os/wireless.nix
Geoffrey Frogeye ec1d120f12
Add Wi-Fi for 37C3
Yes that was the laziest option to do that.
2023-12-24 22:24:12 +01:00

15 lines
480 B
Nix

{ pkgs, ... }:
{
# wireless support via wpa_supplicant
networking.wireless = {
enable = true;
networks = builtins.fromJSON (builtins.readFile ./wireless/networks.json); # If this file doesn't exist, run ./wireless/import.py
extraConfig = ''
country=NL
'';
};
networking.wireless.userControlled.enable = true; # Allow some control with wpa_cli
environment.systemPackages = with pkgs; [ wirelesstools ];
services.chrony.serverOption = "offline";
}