2022-10-01 19:53:20 +02:00
|
|
|
{ config, pkgs, lib, ... } :
|
|
|
|
let
|
|
|
|
inherit (pkgs.liminix.networking) interface address hostapd route dnsmasq;
|
2022-10-02 17:35:55 +02:00
|
|
|
inherit (pkgs.liminix.services) oneshot longrun bundle target;
|
2022-10-01 19:53:20 +02:00
|
|
|
in rec {
|
2023-07-16 18:56:07 +02:00
|
|
|
imports = [
|
|
|
|
../../modules/wlan.nix
|
|
|
|
../../modules/hostapd
|
2023-09-01 18:55:08 +02:00
|
|
|
../../modules/network
|
2023-07-16 18:56:07 +02:00
|
|
|
];
|
2022-10-18 23:28:07 +02:00
|
|
|
|
2023-08-05 13:21:18 +02:00
|
|
|
services.hostap = config.system.service.hostapd.build {
|
2023-07-16 18:56:07 +02:00
|
|
|
interface = config.hardware.networkInterfaces.wlan_24;
|
2022-10-01 19:53:20 +02:00
|
|
|
params = {
|
|
|
|
ssid = "liminix";
|
|
|
|
country_code = "GB";
|
|
|
|
hw_mode="g";
|
|
|
|
channel = "2";
|
|
|
|
wmm_enabled = 1;
|
|
|
|
ieee80211n = 1;
|
|
|
|
wpa_passphrase = "colourless green ideas";
|
|
|
|
auth_algs = 1; # 1=wpa2, 2=wep, 3=both
|
|
|
|
wpa = 2; # 1=wpa, 2=wpa2, 3=both
|
|
|
|
wpa_key_mgmt = "WPA-PSK";
|
|
|
|
wpa_pairwise = "TKIP CCMP"; # auth for wpa (may not need this?)
|
|
|
|
rsn_pairwise = "CCMP"; # auth for wpa2
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultProfile.packages = with pkgs; [ tcpdump ] ;
|
|
|
|
}
|