Make things work
This commit is contained in:
@@ -46,9 +46,11 @@
|
||||
curl
|
||||
fd
|
||||
firefox
|
||||
fzf
|
||||
gcc
|
||||
git
|
||||
htop
|
||||
helix
|
||||
ripgrep
|
||||
wget
|
||||
zsh
|
||||
@@ -56,6 +58,10 @@
|
||||
|
||||
environment.homeBinInPath = true;
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "hx";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
ohMyZsh = {
|
||||
|
||||
23
hosts/dingserver/prometheus.nix
Normal file
23
hosts/dingserver/prometheus.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
exporters = {
|
||||
};
|
||||
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "synapse";
|
||||
metrics_path = "/_synapse/metrics";
|
||||
static_configs = [{
|
||||
targets = ["localhost:9000"];
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user