diff --git a/config/hosts/wind/data/secrets/secrets.nix b/config/hosts/wind/data/secrets/secrets.nix index 7b552e0..d95a37c 100644 Binary files a/config/hosts/wind/data/secrets/secrets.nix and b/config/hosts/wind/data/secrets/secrets.nix differ diff --git a/config/hosts/wind/services/borg.nix b/config/hosts/wind/services/borg.nix index 9c22666..7b8822e 100644 --- a/config/hosts/wind/services/borg.nix +++ b/config/hosts/wind/services/borg.nix @@ -12,5 +12,25 @@ startAt = "*-*-* 02:15:00"; user = "gitea"; }; + postgres = { + paths = "/var/lib/postgresql/backup"; + repo = "ssh://borg@despondos.nao.sh//mnt/slab/backup/wind/postgres"; + encryption.mode = "repokey"; + encryption.passCommand = "cat ${config.secrets.files.borg_pass_postgres.file}"; + environment.BORG_RSH = "ssh -i ${config.secrets.files.ssh_key_postgres.file}"; + compression = "auto,zstd"; + startAt = "*-*-* 03:15:00"; + user = "postgres"; + }; + synapse = { + paths = "/var/lib/matrix-synapse"; + repo = "ssh://borg@despondos.nao.sh//mnt/slab/backup/wind/synapse"; + encryption.mode = "repokey"; + encryption.passCommand = "cat ${config.secrets.files.borg_pass_synapse.file}"; + environment.BORG_RSH = "ssh -i ${config.secrets.files.ssh_key_synapse.file}"; + compression = "auto,zstd"; + startAt = "*-*-* 03:15:00"; + user = "matrix-synapse"; + }; }; } diff --git a/config/sources/nix/sources.json b/config/sources/nix/sources.json index fe11bbb..73f29b7 100644 --- a/config/sources/nix/sources.json +++ b/config/sources/nix/sources.json @@ -5,10 +5,10 @@ "homepage": "https://github.com/nmattia/niv", "owner": "nmattia", "repo": "niv", - "rev": "0ebb80e003c26d5388a9b74645fbdcfca3bdd0ef", - "sha256": "0wpnk1n4vjyqwjjrm6dvkyh7xr7983rszfhfcg31v106qhfnh41c", + "rev": "914aba08a26cb10538b84d00d6cfb01c9776d80c", + "sha256": "0gx316gc7prjay5b0cr13x4zc2pdbiwxkfkpjvrlb2rml80lm4pm", "type": "tarball", - "url": "https://github.com/nmattia/niv/archive/0ebb80e003c26d5388a9b74645fbdcfca3bdd0ef.tar.gz", + "url": "https://github.com/nmattia/niv/archive/914aba08a26cb10538b84d00d6cfb01c9776d80c.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "nixos-hardware": { @@ -29,10 +29,10 @@ "homepage": "", "owner": "NixOS", "repo": "nixpkgs", - "rev": "083cb1a04d196e35b9c8293a379266c854e284c1", - "sha256": "0fl9cq9h8i0dc50b1h0snmmcb3vsxz4d14jzsjw4ixfd2bm4dl0n", + "rev": "c38961c681b546eb4bedc6ea6e5fb19b012a1612", + "sha256": "1xvf4q67k3wvq1y9wbm0mnmxpixm6ljniqagn5rbwmh0vd5gggrx", "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/083cb1a04d196e35b9c8293a379266c854e284c1.tar.gz", + "url": "https://github.com/NixOS/nixpkgs/archive/c38961c681b546eb4bedc6ea6e5fb19b012a1612.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "nixus": {