Make things work
This commit is contained in:
@@ -46,9 +46,11 @@
|
|||||||
curl
|
curl
|
||||||
fd
|
fd
|
||||||
firefox
|
firefox
|
||||||
|
fzf
|
||||||
gcc
|
gcc
|
||||||
git
|
git
|
||||||
htop
|
htop
|
||||||
|
helix
|
||||||
ripgrep
|
ripgrep
|
||||||
wget
|
wget
|
||||||
zsh
|
zsh
|
||||||
@@ -56,6 +58,10 @@
|
|||||||
|
|
||||||
environment.homeBinInPath = true;
|
environment.homeBinInPath = true;
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
EDITOR = "hx";
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ohMyZsh = {
|
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