porcorosso: postgresql/redis

This commit is contained in:
Luke Granger-Brown 2020-06-20 23:11:24 +01:00
parent 1506327979
commit d32ee29a2d

View file

@ -213,6 +213,22 @@ in {
# Enable Thunderbolt device management.
services.hardware.bolt.enable = true;
services.redis.enable = true;
services.postgresql.enable = true;
services.postgresql.ensureUsers = [{
name = "lukegb";
ensurePermissions = {
"ALL TABLES IN SCHEMA public" = "ALL PRIVILEGES";
"DATABASE lukegb" = "ALL PRIVILEGES";
};
}];
services.postgresql.authentication = ''
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you