Compare commits

..
1 Commits
Author SHA1 Message Date
Black_Raven ea2ddcd7d5 feat(hyperlock): Added enabling hyperlock after sleep mode 2026-10-26 22:17:43 +03:00
2 changed files with 5 additions and 4 deletions

No files matched your search

+1
View File
@@ -33,6 +33,7 @@
host.laptop = true;
programs.gamemode.enable = true;
hardware.bluetooth.enable = true;
services.printing.enable = true;
}
+4 -4
View File
@@ -162,11 +162,11 @@
# open-fprintd, so a successful ListEnrolledFingers call means the sensor is
# usable. This is used as ExecStartPost and by greetd ordering.
waitForFprint = pkgs.writeShellScript "wait-for-fprint" ''
for ((i = 0; i < 80; i++)); do
if ${timeout} 1 ${fprintdList} root >/dev/null 2>&1; then
for ((i = 0; i < 20; i++)); do
if ${timeout} 0.5 ${fprintdList} root >/dev/null 2>&1; then
exit 0
fi
${sleep} 0.5
${sleep} 0.1
done
echo "wait-for-fprint: fingerprint backend did not become ready" >&2
@@ -270,7 +270,7 @@ in {
serviceConfig = {
Type = "simple";
ExecStart = "${python-validity}/bin/python-validity-service";
ExecStartPost = "-${waitForFprint}";
ExecStartPost = "${waitForFprint}";
Restart = "always";
RestartSec = 2;
RuntimeDirectory = "python-validity";