howl: add redis and postgresql, but don't start them by default

This commit is contained in:
Luke Granger-Brown 2023-01-08 05:44:13 +00:00
parent e5a01e31ba
commit 91b44d92e4

View file

@ -184,6 +184,24 @@ in {
my.scrapeJournal.enable = false; # Laptop, don't pull too much. 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 # 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