forked from fabian/nix_config
Add 'trivionomicon/' from commit '0ae8676d50
'
git-subtree-dir: trivionomicon git-subtree-mainline:00d3799f90
git-subtree-split:0ae8676d50
This commit is contained in:
commit
ad9c16de0c
50 changed files with 2091 additions and 0 deletions
35
trivionomicon/modules/athena-bccr/sys.nix
Normal file
35
trivionomicon/modules/athena-bccr/sys.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
cfg,
|
||||
doctrine,
|
||||
...
|
||||
}: let
|
||||
athena = pkgs.${doctrine.prefix}.athena-bccr.${cfg.release};
|
||||
in {
|
||||
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;
|
||||
|
||||
udev.extraRules = ''
|
||||
# Athena Smartcard Solutions, Inc. ASEDrive V3CR
|
||||
ATTRS{idVendor}=="0dc3", ATTRS{idProduct}=="1004", MODE="660", GROUP="${cfg.group}", TAG+="uaccess"
|
||||
'';
|
||||
};
|
||||
|
||||
users.groups.${cfg.group} = {};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue