aboutsummaryrefslogtreecommitdiff
path: root/profiles/postgresql.nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/postgresql.nix')
-rw-r--r--profiles/postgresql.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/profiles/postgresql.nix b/profiles/postgresql.nix
index 6e473ad..a128a97 100644
--- a/profiles/postgresql.nix
+++ b/profiles/postgresql.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ config, ... }:
{
services.postgresql = {
enable = true;
@@ -17,4 +17,8 @@
enable = true;
compression = "zstd";
};
+
+ environment.persistence."/persist/save".directories = [
+ config.services.postgresqlBackup.location
+ ];
}