aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/configuration.nix14
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;