flake++++

This commit is contained in:
Aubrey 2025-01-26 13:31:13 -06:00
parent 32673e15e2
commit a076ed5399
No known key found for this signature in database

View file

@ -63,20 +63,20 @@
};
config = lib.mkIf config.services.wanireminder.enable {
systemd.timers.wanireminder = {
wantedBy = ["wanireminder.target"];
after = ["network.target"];
timerConfig = {
OnCalendar = "hourly";
Persistent = true;
Unit = ["wanireminder.service"];
};
};
systemd.services.wanireminder = {
description = "Run wanireminders";
script = let
configJson = builtins.toFile "config.json" (builtins.toJSON config.services.wanireminder);
in ''${self.defaultPackage.${system}}/bin/wanireminder ${configJson}'';
serviceConfig = {
Type = "oneshot";
ExecStart = let
configJson = builtins.toFile "config.json" (builtins.toJSON config.services.wanireminder);
in ''${self.defaultPackage.${system}}/bin/wanireminder ${configJson}'';
};
};
};