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 | 8ce8eed4869436819b5cad84750e486572033dae (patch) | |
| tree | 22357b9b1da4b5eacdb33603c1fecff436799e92 /trivionomicon/modules/athena-bccr/sys.nix | |
| parent | 8c356ad5a8d04f486b818d63e5563542e1b51d4f (diff) | |
trivionomicon: athena-bccr: initial idopte support
Diffstat (limited to '')
| -rw-r--r-- | trivionomicon/modules/athena-bccr/sys.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/trivionomicon/modules/athena-bccr/sys.nix b/trivionomicon/modules/athena-bccr/sys.nix index 5bbefa3..5457ca5 100644 --- a/trivionomicon/modules/athena-bccr/sys.nix +++ b/trivionomicon/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]; }; |
