services.netdata.config.global."memory mode" = "none";
services.netdata.config.health."enabled" = "no";
services.netdata.config.web.mode = "none";
- environment.etc."netdata/stream.conf".text = ''
- [stream]
- enabled = yes
- destination = ${config.myEnv.monitoring.netdata_aggregator}
- api key = ${config.myEnv.monitoring.netdata_keys.eldiron}
- '';
+ users.users."${config.services.netdata.user}".extraGroups = [ "keys" ];
+ environment.etc."netdata/stream.conf".source = "/var/secrets/netdata-stream.conf";
secrets.keys = [
+ {
+ dest = "netdata-stream.conf";
+ user = config.services.netdata.user;
+ group = config.services.netdata.group;
+ permissions = "0400";
+ text = ''
+ [stream]
+ enabled = yes
+ destination = ${config.myEnv.monitoring.netdata_aggregator}
+ api key = ${config.myEnv.monitoring.netdata_keys.eldiron}
+ '';
+ }
{
dest = "zrepl_backup/identity";
user = "root";