13 lines
298 B
Nix
13 lines
298 B
Nix
{ 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";
|
|
}
|