diff options
Diffstat (limited to 'modules/private/system/eldiron.nix')
-rw-r--r-- | modules/private/system/eldiron.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix index 0830f18..2c339a5 100644 --- a/modules/private/system/eldiron.nix +++ b/modules/private/system/eldiron.nix | |||
@@ -126,9 +126,8 @@ | |||
126 | services.netdata.config.web.mode = "none"; | 126 | services.netdata.config.web.mode = "none"; |
127 | users.users."${config.services.netdata.user}".extraGroups = [ "keys" ]; | 127 | users.users."${config.services.netdata.user}".extraGroups = [ "keys" ]; |
128 | environment.etc."netdata/stream.conf".source = config.secrets.fullPaths."netdata-stream.conf"; | 128 | environment.etc."netdata/stream.conf".source = config.secrets.fullPaths."netdata-stream.conf"; |
129 | secrets.keys = [ | 129 | secrets.keys = { |
130 | { | 130 | "netdata-stream.conf" = { |
131 | dest = "netdata-stream.conf"; | ||
132 | user = config.services.netdata.user; | 131 | user = config.services.netdata.user; |
133 | group = config.services.netdata.group; | 132 | group = config.services.netdata.group; |
134 | permissions = "0400"; | 133 | permissions = "0400"; |
@@ -138,15 +137,14 @@ | |||
138 | destination = ${config.myEnv.monitoring.netdata_aggregator} | 137 | destination = ${config.myEnv.monitoring.netdata_aggregator} |
139 | api key = ${config.myEnv.monitoring.netdata_keys.eldiron} | 138 | api key = ${config.myEnv.monitoring.netdata_keys.eldiron} |
140 | ''; | 139 | ''; |
141 | } | 140 | }; |
142 | { | 141 | "zrepl_backup/identity" = { |
143 | dest = "zrepl_backup/identity"; | ||
144 | user = "root"; | 142 | user = "root"; |
145 | group = "root"; | 143 | group = "root"; |
146 | permissions = "0400"; | 144 | permissions = "0400"; |
147 | text = config.myEnv.zrepl_backup.ssh_key.private; | 145 | text = config.myEnv.zrepl_backup.ssh_key.private; |
148 | } | 146 | }; |
149 | ]; | 147 | }; |
150 | programs.ssh.knownHosts.dilion = { | 148 | programs.ssh.knownHosts.dilion = { |
151 | hostNames = ["dilion.immae.eu"]; | 149 | hostNames = ["dilion.immae.eu"]; |
152 | publicKey = let | 150 | publicKey = let |