summaryrefslogtreecommitdiff
path: root/ilex
diff options
context:
space:
mode:
authorstuebinm2023-03-05 22:57:46 +0100
committerstuebinm2023-03-05 22:57:46 +0100
commit9e3d12438c02d6943af7330a49c32737702492fb (patch)
tree1b1af8b2e0593a894b25ce9d997f97a8b0108020 /ilex
parent724cc6ba93e252466d62886275e17dff5127f849 (diff)
ilex: add postgresql to test tracktrain
Diffstat (limited to 'ilex')
-rw-r--r--ilex/configuration.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/ilex/configuration.nix b/ilex/configuration.nix
index e265207..6599cd4 100644
--- a/ilex/configuration.nix
+++ b/ilex/configuration.nix
@@ -31,6 +31,20 @@
system.stateVersion = "22.11";
+ services.postgresql = {
+ enable = true;
+ ensureDatabases = [ "tracktrain" ];
+ ensureUsers = [ {
+ name = "tracktrain";
+ ensurePermissions = {
+ "DATABASE tracktrain" = "ALL PRIVILEGES";
+ };
+ } ];
+ authentication = ''
+ local all all trust
+ host all all 127.0.0.1/32 trust
+ '';
+ };
services.tlp = {
enable = true;