nixos/spec/eientei/postgresql.nix

16 lines
303 B
Nix
Raw Normal View History

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