flake++++
This commit is contained in:
parent
32673e15e2
commit
a076ed5399
|
@ -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";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = let
|
||||
script = let
|
||||
configJson = builtins.toFile "config.json" (builtins.toJSON config.services.wanireminder);
|
||||
in ''${self.defaultPackage.${system}}/bin/wanireminder ${configJson}'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue