summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-09 21:24:45 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-09 21:24:45 +0100
commit69542f257e76eaa6840b06ec395c96f448d31279 (patch)
tree99ded3393e5f6b6f2ff37f0d924c8463f2fb1c1e
parent16f52b7974da86c916bf8048b02178c3da820c49 (diff)
downloadnixos-69542f257e76eaa6840b06ec395c96f448d31279.tar
nixos-69542f257e76eaa6840b06ec395c96f448d31279.tar.gz
nixos-69542f257e76eaa6840b06ec395c96f448d31279.tar.bz2
nixos-69542f257e76eaa6840b06ec395c96f448d31279.tar.xz
nixos-69542f257e76eaa6840b06ec395c96f448d31279.zip
Postgresql schema
-rw-r--r--bragi.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/bragi.nix b/bragi.nix
index c4a10e83..ed60b241 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -360,9 +360,12 @@ in rec {
360 services.postgresql = { 360 services.postgresql = {
361 enable = true; 361 enable = true;
362 authentication = lib.mkForce '' 362 authentication = lib.mkForce ''
363 local sameuser all peer 363 local all all peer
364 local postgres all peer 364 '';
365 local all root,@admins peer 365 initialScript = ''
366 CREATE DATABASE thermoprint;
367 CREATE USER thermoprint;
368 GRANT ALL ON DATABASE thermoprint TO thermoprint;
366 ''; 369 '';
367 }; 370 };
368 371