575 current 1970-01-01 01:00:00 24.11.20250221.11415c7 6.6.79 *
This commit is contained in:
parent
bfc3ee5264
commit
c7a2912aa3
@ -54,7 +54,8 @@ in {
|
|||||||
|
|
||||||
home.packages = with pkgs; [rclone fuse3];
|
home.packages = with pkgs; [rclone fuse3];
|
||||||
|
|
||||||
systemd.user.services = {
|
systemd.user = {
|
||||||
|
services = {
|
||||||
luhbots-mount = {
|
luhbots-mount = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Mount the luhbots nextcloud";
|
Description = "Mount the luhbots nextcloud";
|
||||||
@ -97,6 +98,28 @@ in {
|
|||||||
};
|
};
|
||||||
Install.WantedBy = ["default.target"];
|
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"];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user