trivionomicon: athena-bccr: add support for non-Athena driver vendors
This commit is contained in:
parent
62eee95d99
commit
57f673b495
6 changed files with 152 additions and 144 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue