Initial commit
This commit is contained in:
commit
430194beda
109 changed files with 9066 additions and 0 deletions
31
templates/generic-server/services/netdata.nix
Normal file
31
templates/generic-server/services/netdata.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
outputs,
|
||||
constants,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
config = {
|
||||
stream = {
|
||||
enabled = "yes";
|
||||
destination = "${constants.hosts.cryodev-main.ip}:${toString constants.services.netdata.port}";
|
||||
"api key" = config.sops.placeholder."netdata/stream/child-uuid";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Make sure sops is enabled/imported for this host to handle the secret
|
||||
imports = [ outputs.nixosModules.sops ];
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ../secrets.yaml;
|
||||
secrets."netdata/stream/child-uuid" = {
|
||||
owner = "netdata";
|
||||
group = "netdata";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue