Add postgres local database

This commit is contained in:
thiloho
2023-08-21 12:06:29 +02:00
parent 1b67bc0656
commit 414373b98c
2 changed files with 13 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
@@ -11,6 +11,16 @@
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ "dcbot" ];
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
};
home-manager.users.thiloho = { pkgs, ... }: {
programs.git.signing.key = "E78D9CC2F9EFC890";
home.stateVersion = "23.05";