Add metrics host with Grafana and Prometheus

This commit is contained in:
fi 2023-08-07 00:58:45 +02:00
parent b7bae9e9de
commit d625f3f887
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
6 changed files with 36 additions and 10 deletions

View file

@ -10,7 +10,7 @@
outputs = { self, nixpkgs, nixpkgs-unstable, nixos-generators, ... }@inputs: let
hosts = import ./hosts.nix inputs;
helper = import ./helper.nix inputs;
helper = import ./helper.nix inputs;
in {
colmena = {
meta = {
@ -23,11 +23,15 @@
# The default is "nixpkgs" for "x86_64-linux" systems,
# but it is overridden by the host-specific "hostNixpkgs" and "system" attributes.
nodeNixpkgs = builtins.mapAttrs (name: host: host.pkgs) hosts;
specialArgs = {
inherit hosts;
};
};
} // builtins.mapAttrs (helper.generateColmenaHost) hosts;
hydraJobs = {
nixConfigurations = builtins.mapAttrs (helper.generateNixConfiguration) hosts;
nixConfigurations = builtins.mapAttrs (host: helper.generateNixConfiguration host { inherit hosts; }) hosts;
};
# Generate a base VM image for Proxmox with `nix build .#base-proxmox`