Files
k8scd/nix-infra-machine/__test__/n8n-pod/nodes/testnode001.nix
T
2026-03-15 18:31:53 +01:00

41 lines
866 B
Nix

{ config, pkgs, lib, ... }: {
# Enable podman for container runtime
config.infrastructure.podman.enable = true;
# Enable n8n as container-based instance
config.infrastructure.n8n-pod = {
enable = true;
# Use official n8n Docker image
# image = "docker.n8n.io/n8nio/n8n:latest"; # Default
# Network settings
bindToIp = "0.0.0.0";
bindToPort = 5678;
openFirewall = true;
# Use SQLite database (default)
database = {
type = "sqlite";
};
# Execution settings
executions = {
pruneData = true;
pruneDataMaxAge = 168; # 7 days for testing
pruneDataMaxCount = 1000;
};
# Additional settings (environment variables)
settings = {
GENERIC_TIMEZONE = "UTC";
};
};
# Test utilities
config.environment.systemPackages = with pkgs; [
curl
jq
];
}