From 30f569afaae69f5476607126e60b2962ed138a81 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Sat, 27 Jan 2024 09:55:46 +0800 Subject: [PATCH] feat(focus): enable postgresql --- spec/focus/postgresql.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/focus/postgresql.nix diff --git a/spec/focus/postgresql.nix b/spec/focus/postgresql.nix new file mode 100644 index 00000000..22d99ced --- /dev/null +++ b/spec/focus/postgresql.nix @@ -0,0 +1,12 @@ +{ pkgs +, config +, ...}: { + services.postgresql = { + enable = true; + dataDir = "/nix/persist/service/postgresql/${config.services.postgresql.package.psqlSchema}"; + + package = pkgs.postgresql_15; + }; + + global.fs.zfs.mountpoints."/nix/persist/service/postgresql" = "service/postgresql"; +}