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