diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-09 21:24:45 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-09 21:24:45 +0100 |
| commit | 69542f257e76eaa6840b06ec395c96f448d31279 (patch) | |
| tree | 99ded3393e5f6b6f2ff37f0d924c8463f2fb1c1e | |
| parent | 16f52b7974da86c916bf8048b02178c3da820c49 (diff) | |
| download | nixos-69542f257e76eaa6840b06ec395c96f448d31279.tar nixos-69542f257e76eaa6840b06ec395c96f448d31279.tar.gz nixos-69542f257e76eaa6840b06ec395c96f448d31279.tar.bz2 nixos-69542f257e76eaa6840b06ec395c96f448d31279.tar.xz nixos-69542f257e76eaa6840b06ec395c96f448d31279.zip | |
Postgresql schema
| -rw-r--r-- | bragi.nix | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -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 | ||
