diff options
author | EuAndreh <eu@euandre.org> | 2018-11-19 22:48:29 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2018-11-19 22:49:28 -0200 |
commit | 9e09acd1fb8de5ff25d95065913ead0248fd00d1 (patch) | |
tree | 9d74f770316556da6632e1c106cbeb5481cc606e | |
parent | mrconfig.ini. (diff) | |
download | dotfiles-9e09acd1fb8de5ff25d95065913ead0248fd00d1.tar.gz dotfiles-9e09acd1fb8de5ff25d95065913ead0248fd00d1.tar.xz |
Enable PostgreSQL for local development.
-rw-r--r-- | nixos/configuration.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 911731c..ac1b9e2 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -333,6 +333,20 @@ pcscd.enable = true; # required by yubioath + # Taken from: + # https://unix.stackexchange.com/questions/378711/how-do-i-configure-postgress-authorization-settings-in-nixos + postgresql = { + enable = true; + package = pkgs.postgresql; + authentication = pkgs.lib.mkForce '' + # Generated file; do not edit! + # TYPE DATABASE USER ADDRESS METHOD + local all all trust + host all all 127.0.0.1/32 trust + host all all ::1/128 trust + ''; + }; + # https://nixos.org/nixos/options.html#ipfs ipfs = { enable = true; |