From 10f7b97b644eb33618c8b05375dfda1721635d93 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 19 Jan 2024 03:43:10 +0000 Subject: [PATCH] add pgcli for better interactivity and set pg version --- modules/nixos/services/postgresql.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/nixos/services/postgresql.nix b/modules/nixos/services/postgresql.nix index f05fe78..b1a367a 100644 --- a/modules/nixos/services/postgresql.nix +++ b/modules/nixos/services/postgresql.nix @@ -1,6 +1,7 @@ -{ config, ... }: { +{ config, pkgs, lib, ... }: { services.postgresql = { + package = pkgs.postgresql_15; settings = { }; identMap = ""; ensureUsers = [{ @@ -13,4 +14,9 @@ }]; }; + home-manager.users.${config.user}.home.packages = + lib.mkIf config.services.postgresql.enable [ + pkgs.pgcli # Postgres client with autocomplete + ]; + }