2024-11-04 22:41:38 -05:00
|
|
|
{ config, lib, pkgs, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-11-04 22:41:38 -05:00
|
|
|
options.system.wireless = {
|
|
|
|
enable = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = true;
|
|
|
|
description = "Enable Wifi with iwd";
|
|
|
|
};
|
2024-10-09 03:36:08 -04:00
|
|
|
};
|
2024-10-16 01:21:11 -04:00
|
|
|
|
2024-11-04 22:41:38 -05:00
|
|
|
config = lib.mkIf config.system.wireless.enable {
|
|
|
|
networking = {
|
|
|
|
wireless.iwd.enable = true;
|
|
|
|
enableB43Firmware = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [ unstable.impala ];
|
|
|
|
persistence."/persist".directories = [ "/var/lib/iwd/" ];
|
|
|
|
};
|
2024-11-03 06:57:03 -05:00
|
|
|
};
|
2024-10-09 03:36:08 -04:00
|
|
|
}
|