liminix/modules/hostapd/default.nix

22 lines
439 B
Nix
Raw Normal View History

2023-07-16 16:50:06 +00:00
{ lib, pkgs, config, ...}:
let
inherit (lib) mkOption types;
2023-08-05 11:21:18 +00:00
inherit (pkgs) liminix;
2023-07-16 16:50:06 +00:00
in {
options = {
system.service.hostapd = mkOption {
2023-08-05 11:21:18 +00:00
type = liminix.lib.types.serviceDefn;
2023-07-16 16:50:06 +00:00
};
};
config = {
2023-08-05 11:21:18 +00:00
system.service.hostapd = liminix.callService ./service.nix {
interface = mkOption {
type = liminix.lib.types.service;
};
params = mkOption {
type = types.attrs;
};
};
2023-07-16 16:50:06 +00:00
};
}