From a9bba204289f743c4808c07758515391743d6dde Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Tue, 17 Oct 2023 08:12:17 +0200 Subject: [PATCH] Enable fingerprint auth --- nki-yoga-g8/configuration.nix | 5 +++++ nki-yoga-g8/hardware-configuration.nix | 3 +++ 2 files changed, 8 insertions(+) diff --git a/nki-yoga-g8/configuration.nix b/nki-yoga-g8/configuration.nix index 899d985..b5d73e1 100644 --- a/nki-yoga-g8/configuration.nix +++ b/nki-yoga-g8/configuration.nix @@ -85,6 +85,11 @@ }; }; + # Enable fingerprint auth for some stuff + security.pam.services.sudo.fprintAuth = true; + security.pam.services.swaylock.fprintAuth = true; + security.pam.services.login.fprintAuth = true; + # Secrets # sops.defaultSopsFile = ./secrets.yaml; # sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; diff --git a/nki-yoga-g8/hardware-configuration.nix b/nki-yoga-g8/hardware-configuration.nix index c02e23f..584e57e 100644 --- a/nki-yoga-g8/hardware-configuration.nix +++ b/nki-yoga-g8/hardware-configuration.nix @@ -41,6 +41,9 @@ "mtk_t7xx" ]; + # Fingerprint + services.fprintd.enable = true; + hardware.sensor.iio.enable = true; # Orientaion and ambient light sensors # Enables DHCP on each ethernet and wireless interface. In case of scripted networking