8 pcmciaUtils = pkgs.pcmciaUtils.passthru.function {
9 inherit (config.hardware.pcmcia) firmware config;
18 enable = lib.mkOption {
19 type = lib.types.bool;
22 Enable this option to support PCMCIA card.
26 firmware = lib.mkOption {
27 type = lib.types.listOf lib.types.path;
30 List of firmware used to handle specific PCMCIA card.
34 config = lib.mkOption {
36 type = lib.types.nullOr lib.types.path;
38 Path to the configuration file which maps the memory, IRQs
39 and ports used by the PCMCIA hardware.
47 config = lib.mkIf config.hardware.pcmcia.enable {
49 boot.kernelModules = [ "pcmcia" ];
51 services.udev.packages = [ pcmciaUtils ];
53 environment.systemPackages = [ pcmciaUtils ];