porcorosso: postgresql/redis
This commit is contained in:
parent
1506327979
commit
d32ee29a2d
1 changed files with 16 additions and 0 deletions
|
@ -213,6 +213,22 @@ in {
|
||||||
# Enable Thunderbolt device management.
|
# Enable Thunderbolt device management.
|
||||||
services.hardware.bolt.enable = true;
|
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
|
# This value determines the NixOS release with which your system is to be
|
||||||
# compatible, in order to avoid breaking some software such as database
|
# compatible, in order to avoid breaking some software such as database
|
||||||
# servers. You should change this only after NixOS release notes say you
|
# servers. You should change this only after NixOS release notes say you
|
||||||
|
|
Loading…
Reference in a new issue