ctucx.git: nixfiles

ctucx' nixfiles

commit 9deb4977833bf5076913bbd3477093629616f83f
parent 44222740738e4c3025dd1e6c99335af905c8d2e9
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 21 Nov 2022 17:13:03 +0100

machines/lollo/smarthome: move smarthome-control-pannel to `smart.home.ctu.cx`
2 files changed, 3 insertions(+), 17 deletions(-)
diff --git a/machines/lollo/router/dnsmasq.nix b/machines/lollo/router/dnsmasq.nix
@@ -48,6 +48,7 @@ in {
         cname=lollo.home.ctu.cx,                        home.ctu.cx
         cname=legacy.home.ctu.cx,                       home.ctu.cx
         cname=dnsmasq.home.ctu.cx,                      home.ctu.cx
+        cname=smart.home.ctu.cx,                        home.ctu.cx
         cname=music.home.ctu.cx,                        home.ctu.cx
         cname=storage.home.ctu.cx,                      home.ctu.cx
         cname=influx.home.ctu.cx,                       home.ctu.cx
diff --git a/machines/lollo/smarthome/smartied.nix b/machines/lollo/smarthome/smartied.nix
@@ -77,11 +77,6 @@ let
         deviceName = "led_stripe_desk";
       };
 
-      "relay-pc-speakers" = {
-        type       = "Zigbee2MqttRelay";
-        deviceName = "relay_pc_speakers";
-      };
-
       "tradfri-co-i-desk-l" = {
         type       = "Zigbee2MqttRelay";
         deviceName = "ikea_control_outlet_i_desk_l";

@@ -125,7 +120,7 @@ let
           }];
           arrow_left_click = [{
             type       = "SwitchStateAction";
-            deviceName = "relay-pc-speakers";
+            deviceName = "tradfri-lamp-l-rgb";
             toggle     = true;
           }];
           brightness_up_click = [

@@ -138,11 +133,6 @@ let
           brightness_down_click = [
             {
               type       = "SwitchStateAction";
-              deviceName = "relay-pc-speakers";
-              state      = false;
-            }
-            {
-              type       = "SwitchStateAction";
               deviceName = "led-stripe-desk";
               state      = false;
             }

@@ -186,11 +176,6 @@ let
                 device = "led-stripe-desk";
                 relay  = 0;
               }
-              {
-                name   = "PC-Speakers";
-                device = "relay-pc-speakers";
-                relay  = 0;
-              }
             ];
           }
           {

@@ -366,7 +351,7 @@ in {
     
     nginx    = {
       enable = true;
-      virtualHosts."home.ctu.cx" = {
+      virtualHosts."smart.home.ctu.cx" = {
         enableACME = true;
         forceSSL   = true;
         locations  = {