half-way finished migration

This commit is contained in:
2024-04-18 19:47:16 -06:00
parent 27c700767c
commit bad3a00e3c
56 changed files with 2441 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
let
jawzTasks =
pkgs.writeScriptBin "tasks" (builtins.readFile ./scripts/tasks.sh);
in {
systemd = {
user.services.tasks = {
restartIfChanged = true;
description = "Run a tasks script which keeps a lot of things organized";
wantedBy = [ "default.target" ];
path = [ pkgs.bash pkgs.nix jawzTasks ];
serviceConfig = {
Restart = "on-failure";
RestartSec = 30;
ExecStart = "${jawzTasks}/bin/tasks";
};
timers.tasks = {
enable = true;
description =
"Run a tasks script which keeps a lot of things organized";
wantedBy = [ "timers.target" ];
timerConfig = { OnCalendar = "*:0/10"; };
};
};
};
}