howl: add redis and postgresql, but don't start them by default
This commit is contained in:
parent
e5a01e31ba
commit
91b44d92e4
1 changed files with 18 additions and 0 deletions
|
@ -184,6 +184,24 @@ in {
|
|||
|
||||
my.scrapeJournal.enable = false; # Laptop, don't pull too much.
|
||||
|
||||
services.redis.servers."".enable = true;
|
||||
systemd.services.redis.wantedBy = lib.mkForce [];
|
||||
services.postgresql.enable = true;
|
||||
systemd.services.postgresql.wantedBy = lib.mkForce [];
|
||||
services.postgresql.ensureDatabases = [ "lukegb" ];
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue