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
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue