aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/mo/monitoring/module.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-30 14:05:39 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-30 14:05:39 +0200
commitc153a351659e4596acfc31f00bf594343cbfcd68 (patch)
treea9ed83de07711d6424fbea09aad28891bae5bfe4 /modules/by-name/mo/monitoring/module.nix
parenthosts/server3: Setup prometheus server in agent mode (diff)
downloadnixos-server-c153a351659e4596acfc31f00bf594343cbfcd68.zip
modules: Use namespaces
That might make it easier in the future to merge different server configs together (and thusly facilitate code-reuse.).
Diffstat (limited to 'modules/by-name/mo/monitoring/module.nix')
-rw-r--r--modules/by-name/mo/monitoring/module.nix31
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/by-name/mo/monitoring/module.nix b/modules/by-name/mo/monitoring/module.nix
deleted file mode 100644
index e0fc5db..0000000
--- a/modules/by-name/mo/monitoring/module.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-# Heavily inspired by:
-# https://github.com/ibizaman/selfhostblocks/blob/989865eb519e3fc3e8a803c374775451c47a29c8/modules/blocks/monitoring.nix
-{
- lib,
- config,
- ...
-}: let
- cfg = config.vhack.monitoring;
-in {
- imports = [
- ./components/loki.nix
- # ./components/perses.nix
- ./components/grafana.nix
- ./components/scrutiny.nix
- ./components/prometheus.nix
- ];
-
- options.vhack.monitoring = {
- enable = lib.mkEnableOption "monitoring defaults";
- };
-
- config.vhack.monitoring = lib.mkIf cfg.enable {
- grafana.enable = true;
-
- loki.enable = true;
-
- prometheus.enable = true;
-
- scrutiny. enable = true;
- };
-}