trivionomicon: athena-bccr: fix Polkit authentication failures
This commit is contained in:
parent
c01f195d59
commit
f133a894d8
1 changed files with 16 additions and 2 deletions
|
|
@ -19,8 +19,22 @@ in {
|
||||||
systemPackages = [athena.ase-pkcs11];
|
systemPackages = [athena.ase-pkcs11];
|
||||||
};
|
};
|
||||||
|
|
||||||
#FIXME: Extremadamente peligroso si BCCR o MICITT caen, investigar política nacional de root CA
|
security = {
|
||||||
security.pki.certificateFiles = ["${athena.bccr-cacerts}/root-ca.pem"];
|
#FIXME: Extremadamente peligroso si BCCR o MICITT caen, investigar política nacional de root CA
|
||||||
|
pki.certificateFiles = ["${athena.bccr-cacerts}/root-ca.pem"];
|
||||||
|
|
||||||
|
polkit = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if (action.id == "org.debian.pcsc-lite.access_pcsc" && subject.isInGroup("users")) {
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
pcscd.enable = true;
|
pcscd.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue