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

@ -14,7 +14,7 @@
imports = modules ++ nixpkgs.lib.optional (builtins.pathExists ./hosts/${name}/secrets.nix) ./hosts/${name}/secrets.nix;
};
generateNixConfiguration = name: {
generateNixConfiguration = name: specialArgs: {
hostNixpkgs,
system,
modules,
@ -26,6 +26,6 @@
filter = name: host: (builtins.substring 0 1 name) != "_";
in
(nixpkgs.lib.filterAttrs filter (hostNixpkgs.lib.nixosSystem {
inherit system modules;
inherit system modules specialArgs;
})).config.system.build.toplevel; # Builds the entire NixOS system, see: https://nixos.org/manual/nixos/stable/#sec-building-parts
}