liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

configuration.nix (915B)


      1 { config, pkgs, lib, ... } :
      2 let
      3   inherit (pkgs.liminix.networking) interface address hostapd route dnsmasq;
      4   inherit (pkgs.liminix.services) oneshot longrun bundle target;
      5 in 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 }