diff options
Diffstat (limited to 'modules/services')
| -rw-r--r-- | modules/services/git.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/services/git.nix b/modules/services/git.nix index a937e27..6575737 100644 --- a/modules/services/git.nix +++ b/modules/services/git.nix @@ -70,5 +70,20 @@ Persistent = true; }; }; + + services.borgbackup.jobs.git = { + paths = [ + "/var/lib/git-server" + ]; + repo = "ssh://e5e496ni@e5e496ni.repo.borgbase.com/./repo"; + encryption.mode = "none"; + environment = { + BORG_RSH = "ssh -i ${ + config.sops.secrets."borgbase_ssh_key".path + } -o StrictHostKeyChecking=accept-new"; + }; + compression = "auto,lzma"; + startAt = "daily"; + }; }; } |
