mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-01-31 12:40:24 +00:00
feat: migrate backup destination to dedicated rest-server
- Migrate restic backup destination on nixos and vps to y2q rest-server - Split host-specific restic env secrets
This commit is contained in:
parent
3c314ad5bd
commit
efd61adc07
3 changed files with 23 additions and 41 deletions
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
sops.secrets = {
|
||||
"restic/password" = {};
|
||||
"restic/env" = {};
|
||||
"restic/env/nixos" = {};
|
||||
};
|
||||
|
||||
services.restic.backups.y2q = {
|
||||
|
|
@ -15,8 +15,8 @@
|
|||
"/home/toast/workspace"
|
||||
];
|
||||
exclude = [ "node_modules" ];
|
||||
repository = "rest:http://y2q:9000/nixos/";
|
||||
environmentFile = config.sops.secrets."restic/env".path;
|
||||
repository = "rest:http://restic.ts.700457.xyz/nixos/";
|
||||
environmentFile = config.sops.secrets."restic/env/nixos".path;
|
||||
pruneOpts = [
|
||||
"--keep-hourly 6"
|
||||
"--keep-daily 7"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue