From a5bb6bec46924a2954382d5726540f6902aaa8b1 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 11 Oct 2025 12:22:00 -0600 Subject: tree-wide: replace local athena-bccr with version from trivionomicon --- sys/hardware/athena.nix | 48 ------------------------------------------------ sys/hardware/default.nix | 1 - 2 files changed, 49 deletions(-) delete mode 100644 sys/hardware/athena.nix (limited to 'sys/hardware') diff --git a/sys/hardware/athena.nix b/sys/hardware/athena.nix deleted file mode 100644 index 755c184..0000000 --- a/sys/hardware/athena.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -with lib; let - cfg = config.local.hardware.athena; - - athena = pkgs.local.athena-bccr.${cfg.release}; -in { - options.local.hardware.athena = { - enable = mkEnableOption "Athena ASEDrive III smartcard reader"; - - release = mkOption { - type = types.str; - default = "latest"; - description = "athena-bccr release tag"; - }; - }; - - config = mkIf cfg.enable { - environment = { - etc = { - "Athena".source = "${athena.ase-pkcs11}/etc/Athena"; - - "pkcs11/modules/asep11".text = '' - module: ${athena.libasep11} - ''; - }; - - systemPackages = [athena.ase-pkcs11]; - }; - - #FIXME: Extremadamente peligroso si BCCR o MICITT caen, investigar política nacional de root CA - security.pki.certificateFiles = ["${athena.bccr-cacerts}/root-ca.pem"]; - - services = { - pcscd.enable = true; - - #TODO: Sería mejor agregar un grupo separado - udev.extraRules = '' - # Athena Smartcard Solutions, Inc. ASEDrive V3CR - ATTRS{idVendor}=="0dc3", ATTRS{idProduct}=="1004", MODE="660", GROUP="users", TAG+="uaccess" - ''; - }; - }; -} diff --git a/sys/hardware/default.nix b/sys/hardware/default.nix index 2ded912..10bdece 100644 --- a/sys/hardware/default.nix +++ b/sys/hardware/default.nix @@ -1,7 +1,6 @@ { imports = [ ./altera.nix - ./athena.nix ./apc.nix ./bluetooth.nix ./epson.nix -- cgit v1.2.3