use module-based-service for hostapd
This commit is contained in:
13
modules/hostapd/default.nix
Normal file
13
modules/hostapd/default.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ lib, pkgs, config, ...}:
|
||||
let
|
||||
inherit (lib) mkOption types;
|
||||
in {
|
||||
options = {
|
||||
system.service.hostapd = mkOption {
|
||||
type = types.functionTo types.package;
|
||||
};
|
||||
};
|
||||
config = {
|
||||
system.service.hostapd = pkgs.callPackage ./service.nix {};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user