Ver Fonte

biopass

Johan Rong há 1 mês atrás
pai
commit
c1296c3d22

+ 2 - 1
hosts/ono/nixos/default.nix

@@ -18,7 +18,8 @@ in
     ../../../nixos/modules/hardware/networking
     ../../../nixos/modules/hardware/sound
     ../../../nixos/modules/hardware/bluetooth
-    ../../../nixos/modules/hardware/biometric/fingerprint
+    ../../../nixos/modules/hardware/biometric/biopass.nix
+    # ../../../nixos/modules/hardware/biometric/fingerprint
     ../../../nixos/modules/hardware/battery
 
     ../../../nixos/modules/desktop/hyprland

+ 23 - 0
nixos/modules/hardware/biometric/biopass.nix

@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, openssl, onnxruntime, glib, gtk3 }:
+
+stdenv.mkDerivation rec {
+  pname = "biopass";
+  version = "1.4.1";
+
+  src = fetchFromGitHub {
+    owner = "ticklabvn";
+    repo = "biopass";
+    rev = "v${version}";
+    hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
+  };
+
+  nativeBuildInputs = [ cmake pkg-config ];
+  buildInputs = [ openssl onnxruntime glib gtk3 ];
+
+  meta = with lib; {
+    description = "An alternative to Windows Hello/Howdy";
+    homepage = "https://github.com/TickLabVN/biopass";
+    license = licenses.mit;
+    platforms = platforms.linux;
+  };
+}