From 378b6c12c7f3fdff0975d1dd56f3204bd4e04247 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 2 Mar 2026 19:48:42 -0600 Subject: trivionomicon: athena-bccr: add support for non-Athena driver vendors --- modules/athena-bccr/sys.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/athena-bccr/sys.nix b/modules/athena-bccr/sys.nix index 2dd56e2..5bbefa3 100644 --- a/modules/athena-bccr/sys.nix +++ b/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 = { -- cgit v1.2.3