about summary refs log tree commit diff
path: root/modules/hardware/networking/default.nix
blob: d19388be4ab1540fc6c62fab74dbff02f0e86f4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ 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; })
  ];
}