This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

configs.gg23: don't serve 127.0.0.2 for the router, restart_router via styx mosquitto

+8 -3
+8 -3
configs/gg23.nix
··· 1 - { pkgs, ... }: 1 + { lib, pkgs, ... }: 2 2 { 3 3 # vodafone router drifts out of time 4 4 services.timesyncd.servers = [ ··· 124 124 }; 125 125 }; 126 126 127 + # dnsmasq serves /etc/hosts to the LAN; NixOS maps our own fqdn to 128 + # 127.0.0.2 there, which clients would then try to reach. extraHosts in 129 + # configs/default.nix already has the real 10.42.0.1 entry. 130 + networking.hosts."127.0.0.2" = lib.mkForce [ ]; 131 + 127 132 environment.systemPackages = [ 128 133 (pkgs.writers.writeDashBin "restart_router" '' 129 - ${pkgs.mosquitto}/bin/mosquitto_pub -h localhost -t 'cmnd/router/POWER' -u gg23 -P gg23-mqtt -m OFF 134 + ${pkgs.mosquitto}/bin/mosquitto_pub -h 10.42.0.3 -t 'cmnd/router/POWER' -u gg23 -P gg23-mqtt -m OFF 130 135 sleep 2 131 - ${pkgs.mosquitto}/bin/mosquitto_pub -h localhost -t 'cmnd/router/POWER' -u gg23 -P gg23-mqtt -m ON 136 + ${pkgs.mosquitto}/bin/mosquitto_pub -h 10.42.0.3 -t 'cmnd/router/POWER' -u gg23 -P gg23-mqtt -m ON 132 137 '') 133 138 ]; 134 139 }