{
  config,
  lib,
  ...
}: let
  cfg = config.soispha.services.postgresql;
in {
  options.soispha.services.postgresql = {
    enable = lib.mkEnableOption "postgresql";
  };

  config = lib.mkIf cfg.enable {
    services.postgresql = {
      enable = true;
    };
  };
}