trivionomicon: athena-bccr: add support for non-Athena driver vendors

This commit is contained in:
Alejandro Soto 2026-03-02 19:48:42 -06:00
parent 62eee95d99
commit 57f673b495
6 changed files with 152 additions and 144 deletions

View file

@ -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 = {