Add test postgres environment for pc

This commit is contained in:
thiloho
2023-08-29 16:03:38 +02:00
parent 470d40704f
commit 88874ec6c5

View File

@@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
{ {
imports = [ imports = [
@@ -9,6 +9,16 @@
networking.hostName = "pc"; networking.hostName = "pc";
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, lib, ... }: { home-manager.users.thiloho = { pkgs, lib, ... }: {
programs.git.signing.key = "5ECD00BDC15A987E"; programs.git.signing.key = "5ECD00BDC15A987E";
home.stateVersion = "23.05"; home.stateVersion = "23.05";