diff --git a/hosts/common/default.nix b/hosts/common/default.nix index f003868..7188e9b 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -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 = { diff --git a/hosts/dingserver/prometheus.nix b/hosts/dingserver/prometheus.nix new file mode 100644 index 0000000..85e5844 --- /dev/null +++ b/hosts/dingserver/prometheus.nix @@ -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"]; + }]; + } + ]; + }; +}