From c91913dd2c3760bd23f1cf90800877794794d49a Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 13 Jan 2024 14:41:43 +0300 Subject: [PATCH] Add psql --- hosts/cube/postgresql.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hosts/cube/postgresql.nix b/hosts/cube/postgresql.nix index 6365cba..1623754 100644 --- a/hosts/cube/postgresql.nix +++ b/hosts/cube/postgresql.nix @@ -1,6 +1,6 @@ -{ config, lib, ulib, pkgs, ... }: with ulib; +{ config, lib, ulib, pkgs, ... }: with ulib; merge -serverSystemConfiguration { +(serverSystemConfiguration { services.prometheus.exporters.postgres = enabled { port = 9030; runAsLocalSuperUser = true; @@ -40,5 +40,8 @@ serverSystemConfiguration { GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextcloud; ''; }; +}) -} +(serverSystemPackages (with pkgs; [ + postgresql +]))