* Test DB.
svn path=/configurations/trunk/tud/; revision=32894
Eelco Dolstra committed
Mar 8, 2012 at 15:02 UTC
7aefd1027abf85a02a005f420c5800364fb6b08a
1 file changed
+22
wendy.nix
+22
@@ -60,4 +60,26 @@
60
'';
61
};
62
63
+ services.postgresql = {
64
+ enable = true;
65
+ enableTCPIP = true;
66
+ dataDir = "/data/postgresql";
67
+ extraConfig = ''
68
+ log_min_duration_statement = 1000
69
+ log_duration = off
70
+ log_statement = 'none'
71
+ max_connections = 250
72
+ '';
73
+ authentication = ''
74
+ local all mediawiki ident map=mediawiki-users
75
+ local all all ident
76
+ host all all 127.0.0.1/32 md5
77
+ host all all ::1/128 md5
78
+ host all all 192.168.1.25/32 md5
79
+ host all all 192.168.1.26/32 md5
80
+ '';
81
+ };
82
+
83
+ nixpkgs.config.packageOverrides = pkgs: { postgresql = pkgs.postgresql91; };
84
+
85
}