mob next [ci-skip] [ci skip] [skip ci]
lastFile:inventories/default.nix
This commit is contained in:
+1
-74
@@ -335,85 +335,12 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# roles.server.extraModules = [
|
|
||||||
# (
|
|
||||||
# { config, pkgs, ... }:
|
|
||||||
# {
|
|
||||||
# # clan.core.vars.generators.prometheus = {
|
|
||||||
# # files.matrix-alertmanager-token.secret = true;
|
|
||||||
# # files.matrix-alertmanager-secret.secret = true;
|
|
||||||
# # files.matrix-alertmanager-urlfile = {
|
|
||||||
# # secret = true;
|
|
||||||
# # owner = "alertmanager";
|
|
||||||
# # group = "alertmanager";
|
|
||||||
# # };
|
|
||||||
# # script = ''
|
|
||||||
# # echo "" > $out/matrix-alertmanager-token
|
|
||||||
# # openssl rand -hex 32 > "$out"/matrix-alertmanager-secret
|
|
||||||
# #
|
|
||||||
# # echo "http://localhost:3000/alerts?secret=$(cat $out/matrix-alertmanager-secret)" > $out/matrix-alertmanager-urlfile
|
|
||||||
# # '';
|
|
||||||
# # runtimeInputs = [
|
|
||||||
# # pkgs.openssl
|
|
||||||
# # ];
|
|
||||||
# # };
|
|
||||||
# #
|
|
||||||
# # services.matrix-alertmanager = {
|
|
||||||
# # enable = true;
|
|
||||||
# # tokenFile = config.clan.core.vars.generators.prometheus.files.matrix-alertmanager-token.path;
|
|
||||||
# # secretFile = config.clan.core.vars.generators.prometheus.files.matrix-alertmanager-secret.path;
|
|
||||||
# # homeserverUrl = "https://matrix-client.matrix.org";
|
|
||||||
# # matrixUser = "@kuroiris:matrix.org";
|
|
||||||
# # matrixRooms = [
|
|
||||||
# # {
|
|
||||||
# # receivers = [
|
|
||||||
# # "matrix"
|
|
||||||
# # ];
|
|
||||||
# # roomId = "!rqIrWqPvsXqMgYpcNZ:matrix.org";
|
|
||||||
# # }
|
|
||||||
# # ];
|
|
||||||
# # };
|
|
||||||
#
|
|
||||||
# # services.prometheus = {
|
|
||||||
# #
|
|
||||||
# # alertmanager = {
|
|
||||||
# # enable = true;
|
|
||||||
# # configuration = {
|
|
||||||
# # global = {
|
|
||||||
# # resolve_timeout = "5m";
|
|
||||||
# # };
|
|
||||||
# # route = {
|
|
||||||
# # receiver = "default";
|
|
||||||
# # routes = [
|
|
||||||
# # {
|
|
||||||
# # receiver = "matrix";
|
|
||||||
# # }
|
|
||||||
# # ];
|
|
||||||
# # };
|
|
||||||
# # receivers = [
|
|
||||||
# # { name = "default"; }
|
|
||||||
# # {
|
|
||||||
# # name = "matrix";
|
|
||||||
# # webhook_configs = [
|
|
||||||
# # {
|
|
||||||
# # url_file = config.clan.core.vars.generators.prometheus.files.matrix-alertmanager-urlfile.path;
|
|
||||||
# # send_resolved = true;
|
|
||||||
# # }
|
|
||||||
# # ];
|
|
||||||
# # }
|
|
||||||
# # ];
|
|
||||||
# # };
|
|
||||||
# # };
|
|
||||||
# #
|
|
||||||
# # };
|
|
||||||
# }
|
|
||||||
# )
|
|
||||||
# ];
|
|
||||||
|
|
||||||
roles.nodes.machines = {
|
roles.nodes.machines = {
|
||||||
vega.settings = {
|
vega.settings = {
|
||||||
exporters.smartctl = { };
|
exporters.smartctl = { };
|
||||||
exporters.zfs = { };
|
exporters.zfs = { };
|
||||||
|
exporters.node = { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user