summary refs log tree commit diff
path: root/nixos/modules/services/databases
diff options
context:
space:
mode:
authorDanylo Hlynskyi <abcz2.uprola@gmail.com>2019-08-07 14:17:36 +0300
committerGitHub <noreply@github.com>2019-08-07 14:17:36 +0300
commit0730e81785e3bd4342df9c53d07618659b8249a7 (patch)
treec12c367c7fac8ad1ddf19838430c415c7e236872 /nixos/modules/services/databases
parentb1d00b71b6dcf0d16bd0467d33ac09a70fb63387 (diff)
downloadnixpkgs-0730e81785e3bd4342df9c53d07618659b8249a7.tar
nixpkgs-0730e81785e3bd4342df9c53d07618659b8249a7.tar.gz
nixpkgs-0730e81785e3bd4342df9c53d07618659b8249a7.tar.bz2
nixpkgs-0730e81785e3bd4342df9c53d07618659b8249a7.tar.lz
nixpkgs-0730e81785e3bd4342df9c53d07618659b8249a7.tar.xz
nixpkgs-0730e81785e3bd4342df9c53d07618659b8249a7.tar.zst
nixpkgs-0730e81785e3bd4342df9c53d07618659b8249a7.zip
postgresql: running `initdb` from command line now works (#65309)
The issue was only with NixOS service, `postgresql` installed through
`nix-env` was not affected.

Fixes https://github.com/NixOS/nixpkgs/issues/23655
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r--nixos/modules/services/databases/postgresql.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index 37d44e30fbe..7ff899970cc 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -251,6 +251,10 @@ in
 
     environment.systemPackages = [ postgresql ];
 
+    environment.pathsToLink = [
+     "/share/postgresql"
+    ];
+
     systemd.services.postgresql =
       { description = "PostgreSQL Server";