From cdedcc6238652599534b65f98b9422029ed05368 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 1 Dec 2020 11:59:22 -0500 Subject: feat(gs/system): Setup fingerprint scanner This is kinda nifty Change-Id: I1b9a6762a5349974f539d2c4938a2b3dcdf488ad Reviewed-on: https://cl.tvl.fyi/c/depot/+/2219 Reviewed-by: glittershark Tested-by: BuildkiteCI --- users/glittershark/system/system/default.nix | 8 +++++++- users/glittershark/system/system/machines/yeren.nix | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'users/glittershark/system') diff --git a/users/glittershark/system/system/default.nix b/users/glittershark/system/system/default.nix index a9eb4a130a..174ccfb360 100644 --- a/users/glittershark/system/system/default.nix +++ b/users/glittershark/system/system/default.nix @@ -16,7 +16,13 @@ rec { yeren = import ./machines/yeren.nix; yerenSystem = (pkgs.nixos { - configuration = yeren; + configuration = { ... }: { + imports = [ + ./machines/yeren.nix + "${depot.depotPath}/ops/nixos/depot.nix" + ]; + inherit depot; + }; }).system; iso = import ./iso.nix args; diff --git a/users/glittershark/system/system/machines/yeren.nix b/users/glittershark/system/system/machines/yeren.nix index 97298ac0ac..c8d7aa2dbe 100644 --- a/users/glittershark/system/system/machines/yeren.nix +++ b/users/glittershark/system/system/machines/yeren.nix @@ -8,6 +8,8 @@ ../modules/xserver.nix ../modules/fonts.nix ../modules/sound.nix + ../modules/tvl.nix + ../modules/development.nix ]; networking.hostName = "yeren"; @@ -69,4 +71,18 @@ libvdpau-va-gl intel-media-driver ]; + + services.fprintd = { + enable = true; + package = config.depot.users.glittershark.pkgs.fprintd; + }; + + security.pam.services = { + login.fprintAuth = true; + sudo.fprintAuth = true; + i3lock.fprintAuth = false; + i3lock-color.fprintAuth = false; + lightdm.fprintAuth = true; + lightdm-greeter.fprintAuth = true; + }; } -- cgit 1.4.1