feat(fingerprint): add fingerscan
This commit is contained in:
1 parent
8d85b8af04
commit
be55fac7e2
2 files changed
+17
No files matched your search
@@ -9,6 +9,7 @@
|
||||
./modules/swap.nix
|
||||
./modules/intel.nix
|
||||
./modules/nvidia.nix
|
||||
./modules/fingerprint.nix
|
||||
|
||||
(import ../modules/common.nix {
|
||||
inherit lib;
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{ config, ... }: {
|
||||
services.fprintd.enable = true;
|
||||
|
||||
security.pam.services.sudo.fprintAuth = true;
|
||||
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "net.reactivated.fprint.device.enroll" &&
|
||||
subject.isInGroup("fprint")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
|
||||
users.users.kirill.extraGroups = [ "fprint" ];
|
||||
}
|
||||
Reference in new issue
Block a user