feat(focus): enable postgresql

This commit is contained in:
514fpv 2024-01-27 09:55:46 +08:00
parent 8adda87035
commit 30f569afaa
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

12
spec/focus/postgresql.nix Normal file
View file

@ -0,0 +1,12 @@
{ 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";
}