From 88874ec6c51ac989d2ebde70462da5d71687d9e4 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:03:38 +0200 Subject: [PATCH] Add test postgres environment for pc --- nixos-configurations/pc/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nixos-configurations/pc/default.nix b/nixos-configurations/pc/default.nix index 4642fa3..154848f 100644 --- a/nixos-configurations/pc/default.nix +++ b/nixos-configurations/pc/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { imports = [ @@ -9,6 +9,16 @@ 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, ... }: { programs.git.signing.key = "5ECD00BDC15A987E"; home.stateVersion = "23.05";