health reminder syntax fix

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-11-21 22:27:28 +01:00
parent d12b9ddf2f
commit b8199c24ef

View File

@@ -12,8 +12,7 @@ lib.mkIf (host != "NxACE")
}; };
systemd.user.services."health_reminder" = let systemd.user.services."health_reminder" = let
hm = pkgs.writers.writePython3Bin "health_reminder" { hm = pkgs.writers.writePython3Bin "health_reminder" {} /*python*/ ''
text = /*python*/ ''
import random import random
import re import re
@@ -47,7 +46,6 @@ lib.mkIf (host != "NxACE")
random_action = random.choices(actions, [a.likelihood for a in actions], k=1)[0] random_action = random.choices(actions, [a.likelihood for a in actions], k=1)[0]
print(random_action) print(random_action)
''; '';
};
in { in {
script = '' script = ''
set -eu set -eu