nixos/spec/eientei/postgresql.nix

13 lines
298 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;
};
global.fs.zfs.mountpoints."/nix/persist/service/postgresql" = "service/postgresql";
2024-01-05 00:35:50 +08:00
}