wooooooot, we're compiling again

This commit is contained in:
Chris Kruining 2026-03-26 14:00:25 +01:00
parent 97b63074f0
commit ba7c3392b9
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
94 changed files with 654 additions and 677 deletions

View file

@ -2,7 +2,6 @@
pkgs,
config,
lib,
namespace,
...
}: let
inherit (lib.modules) mkIf;

View file

@ -2,7 +2,6 @@
pkgs,
config,
lib,
namespace,
...
}: let
inherit (lib.modules) mkIf;

View file

@ -1,11 +1,14 @@
{ pkgs, config, lib, namespace, ... }:
let
{
pkgs,
config,
lib,
...
}: let
inherit (builtins) toString;
inherit (lib) mkIf mkEnableOption;
cfg = config.sneeuwvlok.services.observability.prometheus;
in
{
in {
options.sneeuwvlok.services.observability.prometheus = {
enable = mkEnableOption "enable Prometheus";
};
@ -21,14 +24,14 @@ in
{
job_name = "prometheus";
static_configs = [
{ targets = [ "localhost:9002" ]; }
{targets = ["localhost:9002"];}
];
}
{
job_name = "node";
static_configs = [
{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
{targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"];}
];
}
];
@ -37,12 +40,12 @@ in
node = {
enable = true;
port = 9005;
enabledCollectors = [ "systemd" ];
enabledCollectors = ["systemd"];
openFirewall = true;
};
};
};
networking.firewall.allowedTCPPorts = [ 9002 ];
networking.firewall.allowedTCPPorts = [9002];
};
}

View file

@ -2,7 +2,6 @@
pkgs,
config,
lib,
namespace,
...
}: let
inherit (lib.modules) mkIf;

View file

@ -2,7 +2,6 @@
pkgs,
config,
lib,
namespace,
...
}: let
inherit (builtins) toString;