From ef392aba7432a6d46de339119c56645cc9284fb3 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Mon, 2 Mar 2026 20:25:46 -0600 Subject: trivionomicon: athena-bccr: initial idopte support --- modules/athena-bccr/sys.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/athena-bccr/sys.nix b/modules/athena-bccr/sys.nix index 5bbefa3..5457ca5 100644 --- a/modules/athena-bccr/sys.nix +++ b/modules/athena-bccr/sys.nix @@ -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]; }; -- cgit v1.2.3