2023-10-22 22:27:58 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2023-10-28 18:53:17 +02:00
|
|
|
# wireless support via wpa_supplicant
|
|
|
|
# TODO This doesn't change anything, at least in the VM
|
|
|
|
networking.wireless = {
|
|
|
|
enable = true;
|
2023-11-22 00:52:31 +01:00
|
|
|
networks = builtins.fromJSON (builtins.readFile ./wireless/networks.json); # If this file doesn't exist, run ./wireless/import.py
|
2023-10-28 18:53:17 +02:00
|
|
|
extraConfig = ''
|
|
|
|
country=NL
|
|
|
|
'';
|
|
|
|
};
|
2023-10-22 22:27:58 +02:00
|
|
|
environment.systemPackages = with pkgs; [ wirelesstools ];
|
2023-10-28 19:33:40 +02:00
|
|
|
services.chrony.serverOption = "offline";
|
2023-10-22 22:27:58 +02:00
|
|
|
}
|