add pgcli for better interactivity and set pg version

This commit is contained in:
Noah Masur 2024-01-19 03:43:10 +00:00
parent c8a8b7a897
commit 10f7b97b64

View File

@ -1,6 +1,7 @@
{ config, ... }: { { config, pkgs, lib, ... }: {
services.postgresql = { services.postgresql = {
package = pkgs.postgresql_15;
settings = { }; settings = { };
identMap = ""; identMap = "";
ensureUsers = [{ ensureUsers = [{
@ -13,4 +14,9 @@
}]; }];
}; };
home-manager.users.${config.user}.home.packages =
lib.mkIf config.services.postgresql.enable [
pkgs.pgcli # Postgres client with autocomplete
];
} }