From 411bd483f585fede8660db68e98db89a709f3ceb Mon Sep 17 00:00:00 2001 From: 514fpv Date: Fri, 5 Jan 2024 00:35:50 +0800 Subject: [PATCH] feat(library): add postgresql service --- spec/library/postgresql.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/library/postgresql.nix diff --git a/spec/library/postgresql.nix b/spec/library/postgresql.nix new file mode 100644 index 00000000..dc082ee9 --- /dev/null +++ b/spec/library/postgresql.nix @@ -0,0 +1,10 @@ +{ pkgs +, config +, ...}: { + services.postgresql = { + enable = true; + dataDir = "/nix/persist/service/postgresql/${config.services.postgresql.package.psqlSchema}"; + + package = pkgs.postgresql_15; + }; +}