aboutsummaryrefslogtreecommitdiff
path: root/nix/machines/vm-synology/git.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-06-30 12:58:03 -0700
committerFranck Cuny <franck@fcuny.net>2025-06-30 12:58:03 -0700
commit35e7f35d0e4809d752a5dc02c1ec3521fc452ffb (patch)
treeeccfe53fd096f3dcd9e25c2807d0bc6c444bbf78 /nix/machines/vm-synology/git.nix
parentadd configuration for vm-synology (diff)
downloadinfra-35e7f35d0e4809d752a5dc02c1ec3521fc452ffb.tar.gz
backup the VM to Google Cloud Storage
For now we only backup git repositories.
Diffstat (limited to 'nix/machines/vm-synology/git.nix')
-rw-r--r--nix/machines/vm-synology/git.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/nix/machines/vm-synology/git.nix b/nix/machines/vm-synology/git.nix
index 6ca6ec7..27eebc7 100644
--- a/nix/machines/vm-synology/git.nix
+++ b/nix/machines/vm-synology/git.nix
@@ -1,6 +1,5 @@
{ pkgs, ... }:
{
-
services.gitolite = {
enable = true;
adminPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi";
@@ -23,39 +22,4 @@
defaultBranch = main
''}"
];
-
- # # TODO also rsync the backups to the nas
- # # TODO need the ssh key for the nas for rsync ?
- # age.secrets.restic = {
- # file = ../../../secrets/restic-backups.age;
- # owner = "root";
- # group = "root";
- # path = "/etc/restic/secret";
- # mode = "600";
- # };
-
- # # https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/backup/restic.nix
- # services.restic.backups.git = {
- # passwordFile = "/etc/restic/secret";
- # repository = "/srv/backups/git";
- # initialize = true;
- # paths = [ "/var/lib/gitolite" ];
- # exclude = [
- # "/var/lib/gitolite/.bash_history"
- # "/var/lib/gitolite/.ssh"
- # "/var/lib/gitolite/.viminfo"
- # ];
- # extraBackupArgs = [
- # "--exclude-caches"
- # "--compression=max"
- # ];
- # timerConfig = {
- # OnCalendar = "daily";
- # };
- # pruneOpts = [
- # "--keep-daily 7"
- # "--keep-weekly 4"
- # "--keep-monthly 3"
- # ];
- # };
}