niri configured, noctalia installed

This commit is contained in:
bogale 2026-10-08 21:22:11 +09:00
commit 0073ec63bb
9 changed files with 115 additions and 122 deletions

View file

@ -50,8 +50,7 @@
for msg in "''${MESSAGES[@]}"; do
TEXT="''${msg#*:}"
CHAT_ID="''${msg%%:*}"
${pkgs.curl}/bin/curl -X POST "https://api.telegram.org/$BOT/sendMessage" \
-d "chat_id=$CHAT_ID" -d "text=$TEXT" 2> /dev/null | ${pkgs.jq}/bin/jq
${pkgs.curl}/bin/curl -X POST "https://api.telegram.org/$BOT/sendMessage" -d "chat_id=$CHAT_ID" -d "text=$TEXT" 2> /dev/null | ${pkgs.jq}/bin/jq
sleep 1
done
'';
@ -62,8 +61,7 @@
LogLevelMax = "warning";
};
script = ''
if [ ! -e /run/network.failures ] || [ ! -e /run/network.limit ] || \
${pkgs.curl}/bin/curl --head --max-time 3 https://www.google.com; then
if [ ! -e /run/network.failures ] || [ ! -e /run/network.limit ] || ${pkgs.curl}/bin/curl --head --max-time 3 https://www.google.com; then
limit=3
failures=0
else