forked from DGNum/liminix
3d528a71e9
The default hostapd disable too many things, we need a bit more for RADIUS. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
## Hostapd
|
|
## =======
|
|
##
|
|
## Hostapd (host access point daemon) enables a wireless network
|
|
## interface to act as an access point and authentication server,
|
|
## providing IEEE 802.11 access point management, and IEEE
|
|
## 802.1X/WPA/WPA2/EAP Authenticators. In less technical terms,
|
|
## this service is what you need for your Liminix device to
|
|
## provide a wireless network that clients can connect to.
|
|
##
|
|
## If you have more than one wireless network interface (e.g.
|
|
## wlan0, wlan1) you can run an instance of hostapd on each of them.
|
|
|
|
{ lib, pkgs, config, ...}:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
inherit (pkgs) liminix;
|
|
in {
|
|
options = {
|
|
system.service.hostapd = mkOption {
|
|
type = liminix.lib.types.serviceDefn;
|
|
};
|
|
};
|
|
config = {
|
|
system.service.hostapd = liminix.callService ./service.nix {
|
|
interface = mkOption {
|
|
type = liminix.lib.types.service;
|
|
};
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = pkgs.hostapd;
|
|
};
|
|
params = mkOption {
|
|
type = types.attrs;
|
|
};
|
|
};
|
|
};
|
|
}
|