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";