NixOS-Config/modules/system/devices/networking/wireless/default.nix

17 lines
373 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2024-10-09 03:36:08 -04:00
{
2024-11-24 20:02:09 -05:00
options.system.wireless.enable = lib.mkOption {
type = lib.types.bool;
default = true;
2024-10-09 03:36:08 -04:00
};
2024-10-16 01:21:11 -04:00
config = lib.mkIf config.system.wireless.enable {
2024-12-10 17:54:39 -05:00
networking.wireless.iwd.enable = true;
environment = {
2024-11-19 13:20:34 -05:00
systemPackages = with pkgs; [ impala ];
persistence."/persist".directories = [ "/var/lib/iwd/" ];
};
};
2024-10-09 03:36:08 -04:00
}