diff options
| author | Alejandro Soto <alejandro@34project.org> | 2026-03-02 19:48:42 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2026-03-02 19:54:02 -0600 |
| commit | 8c356ad5a8d04f486b818d63e5563542e1b51d4f (patch) | |
| tree | 9285c59f11b4a9d40ce34a703c4199087da5bca8 /trivionomicon/modules | |
| parent | 192ce84e07eea1faba7250eeecb0a79847c0adda (diff) | |
trivionomicon: athena-bccr: add support for non-Athena driver vendors
Diffstat (limited to '')
| -rw-r--r-- | trivionomicon/modules/athena-bccr/sys.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/trivionomicon/modules/athena-bccr/sys.nix b/trivionomicon/modules/athena-bccr/sys.nix index 2dd56e2..5bbefa3 100644 --- a/trivionomicon/modules/athena-bccr/sys.nix +++ b/trivionomicon/modules/athena-bccr/sys.nix @@ -6,17 +6,18 @@ ... }: let athena = pkgs.${doctrine.prefix}.athena-bccr.${cfg.release}; + inherit (athena.card-driver) vendor; in { environment = { - etc = { - "Athena".source = "${athena.ase-pkcs11}/etc/Athena"; + etc = lib.optionalAttrs (vendor == "athena") { + "Athena".source = "${athena.card-driver}/etc/Athena"; "pkcs11/modules/asep11".text = '' - module: ${athena.libasep11} + module: ${athena.pkcs11-module} ''; }; - systemPackages = [athena.ase-pkcs11]; + systemPackages = [athena.card-driver]; }; security = { |
