From 198b3b0483bacda54cc444cca594515ddb1c7d51 Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Thu, 30 May 2024 16:42:58 +0530 Subject: [PATCH] feat: Added fprintd for linux --- common/home.nix | 1 + nixos/ryu.nix | 1 + overlays.nix | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/common/home.nix b/common/home.nix index 039a4c43..8e09480d 100644 --- a/common/home.nix +++ b/common/home.nix @@ -57,6 +57,7 @@ in { sd go pandoc + aichat nodejs sqls vcpkg diff --git a/nixos/ryu.nix b/nixos/ryu.nix index a5241fb7..31d1cf02 100644 --- a/nixos/ryu.nix +++ b/nixos/ryu.nix @@ -25,6 +25,7 @@ ''; services.xserver.videoDrivers = ["nvidia"]; # or "nvidiaLegacy470 etc. + services.fprintd.enable = true; boot.loader.systemd-boot.consoleMode = "max"; hardware.nvidia = { # Modesetting is required. diff --git a/overlays.nix b/overlays.nix index b6357d6d..7f8319f5 100644 --- a/overlays.nix +++ b/overlays.nix @@ -201,8 +201,27 @@ zjstatus = inputs.zjstatus.packages.${prev.system}.default; }; }; + libfprint = final: prev: { + libfprint = prev.libfprint.overrideAttrs (oldAttrs: { + version = "git"; + src = final.fetchFromGitHub { + owner = "ericlinagora"; + repo = "libfprint-CS9711"; + rev = "c242a40fcc51aec5b57d877bdf3edfe8cb4883fd"; + sha256 = "sha256-WFq8sNitwhOOS3eO8V35EMs+FA73pbILRP0JoW/UR80="; + }; + nativeBuildInputs = + oldAttrs.nativeBuildInputs + ++ [ + final.opencv + final.cmake + final.doctest + ]; + }); + }; in [ inputs.subflakes.overlays.default + libfprint zellij catppuccinThemes tmuxPlugins