nixos/spec/library/postgresql.nix

11 lines
211 B
Nix
Raw Normal View History

2024-01-05 00:35:50 +08:00
{ pkgs
, config
, ...}: {
services.postgresql = {
enable = true;
dataDir = "/nix/persist/service/postgresql/${config.services.postgresql.package.psqlSchema}";
package = pkgs.postgresql_15;
};
}