2025-01-13 11:52:09 +08:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-01-05 00:35:50 +08:00
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
|
|
|
dataDir = "/nix/persist/service/postgresql/${config.services.postgresql.package.psqlSchema}";
|
|
|
|
|
|
|
|
package = pkgs.postgresql_15;
|
|
|
|
};
|
2024-02-02 04:39:50 +08:00
|
|
|
|
|
|
|
global.fs.zfs.mountpoints."/nix/persist/service/postgresql" = "service/postgresql";
|
2024-01-05 00:35:50 +08:00
|
|
|
}
|