Add metrics host with Grafana and Prometheus
This commit is contained in:
parent
b7bae9e9de
commit
d625f3f887
6 changed files with 36 additions and 10 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue