Browse Source

no biopass

Johan Rong 1 tháng trước cách đây
mục cha
commit
146edb5e6a

+ 7 - 7
hosts/ono/nixos/default.nix

@@ -36,13 +36,13 @@ in
 
   networking.hostName = hosts.ono.hostname;
 
-  environment.systemPackages = [ biopass ];
+  # environment.systemPackages = [ biopass ];
 
-  security.pam.services.sudo.text = lib.mkBefore ''
-    auth sufficient ${biopass}/lib/security/pam_biopass.so
-  '';
+  # 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
-  '';
+  # security.pam.services.login.text = lib.mkBefore ''
+  #   auth sufficient ${biopass}/lib/security/pam_biopass.so
+  # '';
 }

+ 1 - 1
nixos/modules/hardware/battery/default.nix

@@ -15,7 +15,7 @@
       PLATFORM_PROFILE_ON_AC = "performance";
       PLATFORM_PROFILE_ON_BAT = "low-power";
 
-      START_CHARGE_THRESH_BAT0 = 40;
+      START_CHARGE_THRESH_BAT0 = 0;
       STOP_CHARGE_THRESH_BAT0 = 80;
     };
   };

+ 4 - 4
nixos/programs/biopass.nix

@@ -8,7 +8,7 @@
 , glib
 , gtk3
 , libcamera
-, libpam
+, pam
 , cli11
 , libjpeg
 , rustPlatform
@@ -16,7 +16,7 @@
 , cargo
 , rustc
 , webkitgtk_4_1
-, libxdo
+, xdotool
 , libayatana-appindicator
 , librsvg
 , wrapGAppsHook4
@@ -53,13 +53,13 @@ stdenv.mkDerivation rec {
     onnxruntime
     glib
     gtk3
-    libpam
+    pam
     cli11
     libjpeg
     libcamera
 
     webkitgtk_4_1
-    libxdo
+    xdotool
     libayatana-appindicator
     librsvg
   ];