trivionomicon: athena-bccr: initial idopte support

This commit is contained in:
Alejandro Soto 2026-03-02 20:25:46 -06:00
parent 57f673b495
commit d1102d5b6f
4 changed files with 83 additions and 10 deletions

View file

@ -6,16 +6,18 @@
...
}: let
athena = pkgs.${doctrine.prefix}.athena-bccr.${cfg.release};
inherit (athena.card-driver) vendor;
inherit (athena) vendor;
in {
environment = {
etc = lib.optionalAttrs (vendor == "athena") {
"Athena".source = "${athena.card-driver}/etc/Athena";
"pkcs11/modules/asep11".text = ''
module: ${athena.pkcs11-module}
'';
};
etc =
{
"pkcs11/modules/${vendor}".text = ''
module: ${athena.pkcs11-module}
'';
}
// lib.optionalAttrs (vendor == "athena") {
"Athena".source = "${athena.card-driver}/etc/Athena";
};
systemPackages = [athena.card-driver];
};