diff --git a/flake.nix b/flake.nix index a3c47cd..8db58b9 100755 --- a/flake.nix +++ b/flake.nix @@ -35,6 +35,7 @@ ./modules/nginx.nix ./modules/userdir.nix ./modules/hedgedoc.nix + ./modules/postgres.nix ./modules/wiki.nix ./modules/ftp.nix ./modules/stream.nix diff --git a/modules/postgres.nix b/modules/postgres.nix new file mode 100644 index 0000000..ad39890 --- /dev/null +++ b/modules/postgres.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + # automatically back up all databases + services.postgresqlBackup = { + enable = true; + location = "/var/lib/backup/postgresql"; + }; +}