forked from pub-solar/os
neo: needs polkit rules for yubikey
This commit is contained in:
parent
dc7cb7e273
commit
47d52d384c
1 changed files with 15 additions and 0 deletions
|
@ -39,6 +39,21 @@ in
|
|||
networking.hostName = "neo"; # Define your hostname.
|
||||
|
||||
services.fstrim.enable = true;
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.debian.pcsc-lite.access_pcsc" &&
|
||||
subject.user == "teutat3s") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.debian.pcsc-lite.access_card" &&
|
||||
action.lookup("reader") == 'Yubico YubiKey OTP+FIDO+CCID 00 00' &&
|
||||
subject.user == "teutat3s") {
|
||||
return polkit.Result.YES; }
|
||||
});
|
||||
'';
|
||||
|
||||
home-manager =
|
||||
pkgs.lib.setAttrByPath
|
||||
|
|
Loading…
Add table
Reference in a new issue