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 | 378b6c12c7f3fdff0975d1dd56f3204bd4e04247 (patch) | |
| tree | 4da3130fe090cacc9480583016a7cad7ca14d517 /modules/athena-bccr/sys.nix | |
| parent | 3764bf2c6a7cdc6d716eafea32aa4096b6933123 (diff) | |
trivionomicon: athena-bccr: add support for non-Athena driver vendors
Diffstat (limited to 'modules/athena-bccr/sys.nix')
| -rw-r--r-- | modules/athena-bccr/sys.nix | 9 |
1 files changed, 5 insertions, 4 deletions
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 = { |
