diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-10-11 12:22:00 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-10-11 12:22:00 -0600 |
| commit | a5bb6bec46924a2954382d5726540f6902aaa8b1 (patch) | |
| tree | c13ee41179e65658807c146b04430e8bae51d0e7 /sys | |
| parent | 037a099639c3a359b006493b481a38701febb81e (diff) | |
tree-wide: replace local athena-bccr with version from trivionomicon
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/hardware/athena.nix | 48 | ||||
| -rw-r--r-- | sys/hardware/default.nix | 1 |
2 files changed, 0 insertions, 49 deletions
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 |
