diff options
| author | Alejandro Soto <alejandro@34project.org> | 2026-03-02 20:25:46 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2026-03-02 20:30:47 -0600 |
| commit | ef392aba7432a6d46de339119c56645cc9284fb3 (patch) | |
| tree | efc59289c447d3cc90fe75a26bdbfd473c307d1c /modules | |
| parent | 378b6c12c7f3fdff0975d1dd56f3204bd4e04247 (diff) | |
trivionomicon: athena-bccr: initial idopte support
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/athena-bccr/sys.nix | 18 |
1 files changed, 10 insertions, 8 deletions
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]; }; |
