aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/private/system/eldiron.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix
index 2475710..fdc3692 100644
--- a/modules/private/system/eldiron.nix
+++ b/modules/private/system/eldiron.nix
@@ -122,14 +122,22 @@
122 services.netdata.config.global."memory mode" = "none"; 122 services.netdata.config.global."memory mode" = "none";
123 services.netdata.config.health."enabled" = "no"; 123 services.netdata.config.health."enabled" = "no";
124 services.netdata.config.web.mode = "none"; 124 services.netdata.config.web.mode = "none";
125 environment.etc."netdata/stream.conf".text = '' 125 users.users."${config.services.netdata.user}".extraGroups = [ "keys" ];
126 [stream] 126 environment.etc."netdata/stream.conf".source = "/var/secrets/netdata-stream.conf";
127 enabled = yes
128 destination = ${config.myEnv.monitoring.netdata_aggregator}
129 api key = ${config.myEnv.monitoring.netdata_keys.eldiron}
130 '';
131 secrets.keys = [ 127 secrets.keys = [
132 { 128 {
129 dest = "netdata-stream.conf";
130 user = config.services.netdata.user;
131 group = config.services.netdata.group;
132 permissions = "0400";
133 text = ''
134 [stream]
135 enabled = yes
136 destination = ${config.myEnv.monitoring.netdata_aggregator}
137 api key = ${config.myEnv.monitoring.netdata_keys.eldiron}
138 '';
139 }
140 {
133 dest = "zrepl_backup/identity"; 141 dest = "zrepl_backup/identity";
134 user = "root"; 142 user = "root";
135 group = "root"; 143 group = "root";