restructured directories + modularized btrfs mount

This commit is contained in:
2024-04-18 20:24:00 -06:00
parent bad3a00e3c
commit d271979bec
75 changed files with 65 additions and 1873 deletions

View File

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