nix-da/options/system/networking/wifi.nix

14 lines
305 B
Nix

{ lib, config, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.modules.system.networking.wifi;
in
{
options.modules.system.networking.wifi = {
enable = mkEnableOption "activate wifi capabilities";
};
config = mkIf cfg.enable {
networking.networkmanager.enable = true;
};
}