# Simplified NixOS VM configuration for testing Movie Map # This focuses on PostgreSQL; *arr services should be configured separately { config, pkgs, lib, ... }: { networking = { hostName = "moviemap-test-vm"; firewall = { enable = true; allowedTCPPorts = [ 8080 # Movie Map backend 5432 # PostgreSQL ]; }; }; # PostgreSQL configuration services.postgresql = { enable = true; ensureDatabases = [ "moviemap_test" ]; ensureUsers = [ { name = "moviemap"; ensureDBOwnership = true; } ]; authentication = '' local all all trust host all all 0.0.0.0/0 trust ''; settings = { listen_addresses = "'*'"; }; }; # System packages environment.systemPackages = with pkgs; [ curl jq postgresql ]; }