Rippled creates a 'db' folder in the same directory as its config, so I create the config with nix then symlink it to the state dir in /var.