mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
added postgres to wsl installation for dev server
This commit is contained in:
parent
44c6c38eef
commit
ab4faa2f7e
1 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# See https://nix-community.github.io/NixOS-WSL/how-to/change-username.html
|
||||
|
@ -31,4 +31,16 @@
|
|||
package = pkgs.nixVersions.stable;
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
enableTCPIP = true;
|
||||
authentication = lib.mkForce ''
|
||||
# TYPE DATABASE USER ADDRESS METHOD
|
||||
local all all trust
|
||||
host all all 127.0.0.1/32 trust
|
||||
host all all ::1/128 trust
|
||||
host all all 0.0.0.0/0 md5
|
||||
''; # address is the computer you are connecting from
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue