ctucx.git: nixfiles

ctucx' nixfiles

commit 5e0c6ba952d1b9f1a0da00bf48f396e0cf1c9db4
parent 9deb4977833bf5076913bbd3477093629616f83f
Author: Isabelle <hi@f2k1.de>
Date: Tue, 22 Nov 2022 19:34:55 +0100

prometheus-node-exporter, restic-server: set listenAddress to 127.0.0.1
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/configurations/linux/services/prometheus-node-exporter.nix b/configurations/linux/services/prometheus-node-exporter.nix
@@ -4,6 +4,7 @@
 
   services = {
     prometheus.exporters.node.enable = true;
+    prometheus.exporters.node.listenAddress = "127.0.0.1";
 
     nginx = {
       enable = true;
diff --git a/configurations/linux/services/restic-server.nix b/configurations/linux/services/restic-server.nix
@@ -13,10 +13,11 @@
 
   services = {
     restic.server = {
-      enable     = true;
-      appendOnly = true;
-      extraFlags = [ "--no-auth" ];
-      dataDir    = "/var/lib/restic";
+      enable        = true;
+      listenAddress = "127.0.0.1:8000";
+      appendOnly    = true;
+      extraFlags    = [ "--no-auth" ];
+      dataDir       = "/var/lib/restic";
     };
 
     nginx = {