Skip to content

Commit

Permalink
+ call
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Oct 22, 2024
1 parent 1b32252 commit 82fcab3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
10 changes: 3 additions & 7 deletions hosts/hastur/backup.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{ config, lib, ... }:
{
repack.postgresql-backup.enable = true;
systemd.services.postgresqlBackup.onSuccess = "rustic-backups-critic.service";
services.rustic = {
backups = {
critic = {
profiles = map (n: config.age.secrets.${n}.path) [
"general.toml"
"on-kaambl.toml"
];

timerConfig = {
OnCalendar = "*-*-* 2,14:00:00";
RandomizedDelaySec = "4h";
FixedRandomDelay = true;
Persistent = true;
};
};

solid = {
profiles = map (n: config.age.secrets.${n}.path) [
"general.toml"
Expand Down
7 changes: 0 additions & 7 deletions hosts/hastur/spec.nix
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,6 @@

gvfs.enable = false;

postgresqlBackup = {
enable = true;
location = "/var/lib/backup/postgresql";
compression = "zstd";
startAt = "*-*-* 0,12:00:00";
};

pipewire = {
enable = true;
alsa.enable = true;
Expand Down
12 changes: 12 additions & 0 deletions repack/postgresql-backup.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
reIf,
...
}:
reIf {
postgresqlBackup = {
enable = true;
location = "/var/lib/backup/postgresql";
compression = "zstd";
startAt = "*-*-* 0,12:00:00";
};
}

0 comments on commit 82fcab3

Please sign in to comment.