ctucx.git: nixfiles

ctucx' nixfiles

commit f73f9649e064819471818e9b31dee73e066feb97
parent 995d0188c640fbd9d6767ae146ca6220c5bade99
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 10 Jul 2023 11:44:43 +0200

misc fixes
4 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/configurations/common/programs/scripts.nix b/configurations/common/programs/scripts.nix
@@ -19,8 +19,8 @@ let
   colmena-remote = pkgs.writeShellScriptBin "colmena-remote" ''
     set -euo xtrace
 
+    NIXFILES="`git rev-parse --show-toplevel`/"
     SSH_HOST="''${HOST:-briefkasten.ctu.cx}"
-    NIXFILES="''${NIXFILES_PATH:-$HOME/proj/nixfiles/}"
 
     rsync -Pavh $NIXFILES $SSH_HOST:/home/leah/nixfiles/
     ssh -A -S none $SSH_HOST colmena -f ./nixfiles/flake.nix "$@"
diff --git a/machines/briefkasten/smarthome/mqtt-webui/config.nix b/machines/briefkasten/smarthome/mqtt-webui/config.nix
@@ -169,7 +169,7 @@ in {
 
         (DimmableLamp "Desk" "zigbee2mqtt/tuya_led_stripe_desk")
 
-        (ColorSpectrumLamp "RGB Lamp" "zigbee2mqtt/ikea_lamp_l_rgb")
+#        (ColorSpectrumLamp "RGB Lamp" "zigbee2mqtt/ikea_lamp_l_rgb")
 
         {
           title = "Power-Meter";
diff --git a/machines/briefkasten/solar-nrw/mqtt-webui/config.nix b/machines/briefkasten/solar-nrw/mqtt-webui/config.nix
@@ -112,6 +112,12 @@
               transform = "let date =  new Date(message.last_update*1000); return date.toLocaleTimeString() + ', '+ date.toLocaleDateString();";
             }
 
+            {
+              title = "Grafana-Dashboard";
+              type = "text";
+              icon = "icons/sun.png";
+              link = "https://grafana.ctu.cx/d/aRDYqjEGa/solar-influx?orgId=1&refresh=30s";
+            }
           ];
         }
 
diff --git a/secrets/agenix b/secrets/agenix
@@ -10,4 +10,6 @@ chmod 600 $tempfile
 
 echo "$(pass agenix-privkey)" > $tempfile
 
+cd "`git rev-parse --show-toplevel`/secrets"
+
 agenix -i $tempfile "$@"