{ pkgs, lib, config, ... }: { networking.firewall.allowedTCPPorts = [ 9090 # prometheus ]; services = { prometheus = { enable = true; scrapeConfigs = [ { job_name = "node"; scrape_interval = "10s"; static_configs = [ { targets = [ "localhost:9100" ]; } ]; } ]; }; }; }