Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea2ddcd7d5 |
No files matched your search
@@ -33,6 +33,7 @@
|
||||
|
||||
host.laptop = true;
|
||||
|
||||
programs.gamemode.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
services.printing.enable = true;
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user