about summary refs log tree commit diff
path: root/modules/hardware/networking/default.nix
blob: fac6c309b723131559b992065d5e0e1c2b26e800 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, lib, ... }:
let cfg = config.my.hardware.networking;
in
{
  options.my.hardware.networking = with lib; {
    wireless = { enable = mkEnableOption "wireless configuration"; };
  };

  config = lib.mkMerge [
    (lib.mkIf cfg.wireless.enable { networking.wireless.iwd.enable = true; })
  ];
}