diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-07-25 08:46:32 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-07-25 08:47:10 -0700 |
| commit | db119ccc29ab169a7f35138d5e5d3ba251748ad5 (patch) | |
| tree | c3ac1c0f26dfa1fed38447a27aa2bf4706d3fc84 /machines/nixos/x86_64-linux | |
| parent | add a script to build the VM (diff) | |
| download | infra-db119ccc29ab169a7f35138d5e5d3ba251748ad5.tar.gz | |
add a module for backups
Enable the module on the VM, and backup the git repositories both to the
NAS and to a GCS bucket.
Diffstat (limited to 'machines/nixos/x86_64-linux')
| -rw-r--r-- | machines/nixos/x86_64-linux/vm-synology.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/machines/nixos/x86_64-linux/vm-synology.nix b/machines/nixos/x86_64-linux/vm-synology.nix index 0dfbc14..4b499f2 100644 --- a/machines/nixos/x86_64-linux/vm-synology.nix +++ b/machines/nixos/x86_64-linux/vm-synology.nix @@ -71,5 +71,14 @@ }; }; + my.modules.backups = { + enable = true; + passwordFile = config.age.secrets.restic_password.path; + remote = { + googleProjectId = "fcuny-infra"; + googleCredentialsFile = config.age.secrets.restic_gcs_credentials.path; + }; + }; + system.stateVersion = "23.11"; # Did you read the comment? } |
