Compare commits

..
2 Commits
2 changed files with 4 additions and 5 deletions

No files matched your search

-1
View File
@@ -33,7 +33,6 @@
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 < 20; i++)); do
if ${timeout} 0.5 ${fprintdList} root >/dev/null 2>&1; then
for ((i = 0; i < 80; i++)); do
if ${timeout} 1 ${fprintdList} root >/dev/null 2>&1; then
exit 0
fi
${sleep} 0.1
${sleep} 0.5
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";