mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 11:31:36 +01:00
Add test postgres environment for pc
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user