liminix

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

default.nix (972B)


      1 ## Hostapd
      2 ## =======
      3 ##
      4 ## Hostapd (host access point daemon) enables a wireless network
      5 ## interface to act as an access point and authentication server,
      6 ## providing IEEE 802.11 access point management, and IEEE
      7 ## 802.1X/WPA/WPA2/EAP Authenticators. In less technical terms,
      8 ## this service is what you need for your Liminix device to
      9 ## provide a wireless network that clients can connect to.
     10 ##
     11 ## If you have more than one wireless network interface (e.g.
     12 ## wlan0, wlan1) you can run an instance of hostapd on each of them.
     13 
     14 { lib, pkgs, config, ...}:
     15 let
     16   inherit (lib) mkOption types;
     17   inherit (pkgs) liminix;
     18 in {
     19   options = {
     20     system.service.hostapd = mkOption {
     21       type = liminix.lib.types.serviceDefn;
     22     };
     23   };
     24   config = {
     25     system.service.hostapd = liminix.callService ./service.nix {
     26       interface = mkOption {
     27         type = liminix.lib.types.service;
     28       };
     29       params = mkOption {
     30         type = types.attrs;
     31       };
     32     };
     33   };
     34 }