From 557ded82865f306e85be761e5f1ae36c9b58d933 Mon Sep 17 00:00:00 2001 From: EinEtwas Date: Sun, 13 Oct 2024 20:38:56 +0200 Subject: [PATCH] feat: enable fingerprint authentication --- flake.nix | 1 + modules/configuration.nix | 1 + modules/fingerprint.nix | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 modules/fingerprint.nix diff --git a/flake.nix b/flake.nix index 4a200cd..4c96305 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ ./modules/hardware-configuration.nix ./modules/shell.nix ./modules/wayland.nix + ./modules/fingerprint.nix ./home # ./modules/hyprland.nix ]; diff --git a/modules/configuration.nix b/modules/configuration.nix index 635f4f7..4869bab 100644 --- a/modules/configuration.nix +++ b/modules/configuration.nix @@ -67,6 +67,7 @@ # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # wget chromium + fprintd #home-manager ]; diff --git a/modules/fingerprint.nix b/modules/fingerprint.nix new file mode 100644 index 0000000..f99efcd --- /dev/null +++ b/modules/fingerprint.nix @@ -0,0 +1,9 @@ +{ pkgs, ...}: +{ + services.fprintd = { + enable = true; + }; + + security.pam.services.login.fprintAuth = true; + security.pam.services.sudo.fprintAuth = true; +}