diff --git a/ops/nixos/porcorosso/default.nix b/ops/nixos/porcorosso/default.nix index e22e0aea43..0aa1886f57 100644 --- a/ops/nixos/porcorosso/default.nix +++ b/ops/nixos/porcorosso/default.nix @@ -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