summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/athena-bccr/sys.nix9
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 = {