575 current 1970-01-01 01:00:00 24.11.20250221.11415c7 6.6.79 *

This commit is contained in:
Max Känner 2025-02-28 20:55:56 +01:00
parent bfc3ee5264
commit c7a2912aa3

View File

@ -54,7 +54,8 @@ in {
home.packages = with pkgs; [rclone fuse3];
systemd.user.services = {
systemd.user = {
services = {
luhbots-mount = {
Unit = {
Description = "Mount the luhbots nextcloud";
@ -97,6 +98,28 @@ in {
};
Install.WantedBy = ["default.target"];
};
sync-Documents = {
Unit = {
Description = "Sync the Documents folder with the cloud Documents folder using bisync";
After = ["network-online.target"];
};
Service = {
type = "oneshot";
ExecStart = "${pkgs.rclone}/bin/rclone --config=${config.sops.templates."rclone.conf".path} --resilient --recover --exclude-from %h/Documents/sync-exclude.txt bisync cloud:Documents %h/Documents";
};
Install.WantedBy = ["default.target"];
};
};
timers = {
sync-Documents = {
Unit.Description = "Sync Documents folder every half hour";
Timer = {
OnBootSec = "15min";
OnUnitActiveSec = "30min";
};
Install.WantedBy = ["timers.target"];
};
};
};
};
}