1 { config, lib, pkgs, ... }:
3 pcmciaUtils = pkgs.pcmciaUtils.passthru.function {
4 inherit (config.hardware.pcmcia) firmware config;
13 enable = lib.mkOption {
14 type = lib.types.bool;
17 Enable this option to support PCMCIA card.
21 firmware = lib.mkOption {
22 type = lib.types.listOf lib.types.path;
25 List of firmware used to handle specific PCMCIA card.
29 config = lib.mkOption {
31 type = lib.types.nullOr lib.types.path;
33 Path to the configuration file which maps the memory, IRQs
34 and ports used by the PCMCIA hardware.
42 config = lib.mkIf config.hardware.pcmcia.enable {
44 boot.kernelModules = [ "pcmcia" ];
46 services.udev.packages = [ pcmciaUtils ];
48 environment.systemPackages = [ pcmciaUtils ];