chore: comment out sops stuff - for now

This commit is contained in:
Thiago Sposito 2025-10-12 18:53:39 -03:00
parent 3d5554a8bf
commit 6f7b69d96d
Signed by: thiago
GPG key ID: 3065EA73A976D430
11 changed files with 152 additions and 31 deletions

40
home-manager/backup.nix Normal file
View file

@ -0,0 +1,40 @@
{ config, lib, pkgs, sops, secrets, ... }:
{
# --- sops secret integration ---
sops.secrets."rclone.conf" = {
sopsFile = secrets + "/rclone.yaml";
format = "yaml";
};
# --- user service ---
systemd.user.services."rclone-backup" = {
Unit = {
Description = "Encrypted rclone backup to Google Drive";
After = [ "network-online.target" ];
};
Service = {
Type = "oneshot";
ExecStart = ''
${pkgs.rclone}/bin/rclone sync \
/home/thiago/Documents \
gcrypt:backup \
--config ${config.sops.secrets."rclone.conf".path} \
--log-file=${config.home.homeDirectory}/.local/share/rclone-backup.log \
--log-level INFO
'';
};
};
# --- timer (every 6 h) ---
systemd.user.timers."rclone-backup" = {
Unit.Description = "Periodic encrypted backup to Google Drive";
Timer = {
OnBootSec = "10m";
OnUnitActiveSec = "6h";
Persistent = true;
};
Install.WantedBy = [ "timers.target" ];
};
}