Flake parts with x64 and ARM support for devshell on both Linux and Mac

This commit is contained in:
2023-07-01 18:30:30 -05:00
parent baf8223799
commit cfe907101d
20 changed files with 137 additions and 96 deletions

View File

@ -0,0 +1,21 @@
{ config, pkgs, ... }: {
services.prometheus = {
enable = true;
port = 7001;
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
port = 7002;
};
};
scrapeConfigs = [
{
job_name = "eve-psr-nix0";
static_configs = [{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
}];
}
];
};
}