flake update and nix fmt

This commit is contained in:
cy 2024-12-16 11:40:19 -05:00
parent 72f9b201e7
commit 0e00202cbb
3 changed files with 13 additions and 11 deletions

6
flake.lock generated
View file

@ -23,11 +23,11 @@
]
},
"locked": {
"lastModified": 1734093295,
"narHash": "sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4=",
"lastModified": 1734344598,
"narHash": "sha256-wNX3hsScqDdqKWOO87wETUEi7a/QlPVgpC/Lh5rFOuA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "66c5d8b62818ec4c1edb3e941f55ef78df8141a8",
"rev": "83ecd50915a09dca928971139d3a102377a8d242",
"type": "github"
},
"original": {

View file

@ -1,4 +1,4 @@
{config,...}: {
{config, ...}: {
services.grafana = {
enable = true;
settings.server = {
@ -16,15 +16,17 @@
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" ];
enabledCollectors = ["systemd"];
};
};
scrapeConfigs = [
{
job_name = "chrysalis";
static_configs = [{
static_configs = [
{
targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"];
}];
}
];
}
];
};