diff options
| -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 | ||
