configuration.nix (807B)
1 { config, pkgs, ... }: 2 let 3 inherit (pkgs.liminix.networking) interface hostapd; 4 in 5 rec { 6 imports = [ 7 ../../modules/wlan.nix 8 ../../modules/hostapd 9 ../../modules/network 10 ]; 11 12 services.hostap = config.system.service.hostapd.build { 13 interface = config.hardware.networkInterfaces.wlan_24; 14 params = { 15 ssid = "liminix"; 16 country_code = "GB"; 17 hw_mode = "g"; 18 channel = "2"; 19 wmm_enabled = 1; 20 ieee80211n = 1; 21 wpa_passphrase = "colourless green ideas"; 22 auth_algs = 1; # 1=wpa2, 2=wep, 3=both 23 wpa = 2; # 1=wpa, 2=wpa2, 3=both 24 wpa_key_mgmt = "WPA-PSK"; 25 wpa_pairwise = "TKIP CCMP"; # auth for wpa (may not need this?) 26 rsn_pairwise = "CCMP"; # auth for wpa2 27 }; 28 }; 29 30 defaultProfile.packages = with pkgs; [ tcpdump ]; 31 }