Просмотр исходного кода

face recog, and multiple biometrics in general aren't really that good on linux. sticking to fingerprint

Johan Rong 1 месяц назад
Родитель
Сommit
cf9e28ed4a
3 измененных файлов с 1 добавлено и 98 удалено
  1. 0 10
      hosts/ono/nixos/default.nix
  2. 1 0
      nixos/profiles/workstation/default.nix
  3. 0 88
      nixos/programs/biopass.nix

+ 0 - 10
hosts/ono/nixos/default.nix

@@ -35,14 +35,4 @@ in
   ];
 
   networking.hostName = hosts.ono.hostname;
-
-  # environment.systemPackages = [ biopass ];
-
-  # security.pam.services.sudo.text = lib.mkBefore ''
-  #   auth sufficient ${biopass}/lib/security/pam_biopass.so
-  # '';
-  
-  # security.pam.services.login.text = lib.mkBefore ''
-  #   auth sufficient ${biopass}/lib/security/pam_biopass.so
-  # '';
 }

+ 1 - 0
nixos/profiles/workstation/default.nix

@@ -46,6 +46,7 @@
     brightnessctl
     kdePackages.kio-extras
     cifs-utils
+    webcamoid
   ];
 
   services.samba = {

+ 0 - 88
nixos/programs/biopass.nix

@@ -1,88 +0,0 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, cmake
-, pkg-config
-, openssl
-, onnxruntime
-, glib
-, gtk3
-, libcamera
-, pam
-, cli11
-, libjpeg
-, rustPlatform
-, bun
-, cargo
-, rustc
-, webkitgtk_4_1
-, xdotool
-, libayatana-appindicator
-, librsvg
-, wrapGAppsHook4
-}:
-
-stdenv.mkDerivation rec {
-  pname = "biopass";
-  version = "1.4.1";
-
-  src = fetchFromGitHub {
-    owner = "TickLabVN";
-    repo = "biopass";
-    rev = "v${version}";
-    hash = "sha256-JNX2L4IDU5XxfgjhbuivhiYKp7GdLWLogrBgdFgODsg=";
-  };
-
-  cmakeFlags = [
-    "-S../auth" 
-    "-B."
-  ];
-
-  nativeBuildInputs = [
-    cmake
-    pkg-config
-    rustPlatform.cargoSetupHook
-    cargo
-    rustc
-    bun
-    wrapGAppsHook4
-  ];
-
-  buildInputs = [
-    openssl
-    onnxruntime
-    glib
-    gtk3
-    pam
-    cli11
-    libjpeg
-    libcamera
-
-    webkitgtk_4_1
-    xdotool
-    libayatana-appindicator
-    librsvg
-  ];
-
-  buildPhase = ''
-    runHook preBuild
-    
-    cmake --build . --config Release
-    
-    export HOME=$(mktemp -d)
-    cd ../app
-    bun install --no-progress --frozen-lockfile
-    # Invoke tauri build logic (Requires cargo dependencies vendored if strictly sandboxed)
-    bun run tauri build --no-bundle
-    
-    cd ../build
-    runHook postBuild
-  '';
-
-  meta = with lib; {
-    description = "An alternative to Windows Hello/Howdy";
-    homepage = "https://github.com/TickLabVN/biopass";
-    license = licenses.mit;
-    platforms = platforms.linux;
-  };
-}