diff --git a/hosts/hades/default.nix b/hosts/hades/default.nix index a0bb987..46d7524 100644 --- a/hosts/hades/default.nix +++ b/hosts/hades/default.nix @@ -73,6 +73,10 @@ in { privatePort = 8080; }; + postgresql-backup = { + enable = true; + }; + restic-backup = { enable = true; repo = "b2:hades-backup-alarsyo"; diff --git a/services/gitea/default.nix b/services/gitea/default.nix index c6472fb..11ef52d 100644 --- a/services/gitea/default.nix +++ b/services/gitea/default.nix @@ -95,6 +95,8 @@ in { ]; }; + # NOTE: no need to use postgresql.ensureDatabases because the gitea module + # takes care of this automatically services.postgresqlBackup = { databases = ["gitea"]; };