diff options
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]; }; |
