mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(exports): service access
This commit is contained in:
parent
91918b8061
commit
871b1c5b2d
69 changed files with 1317 additions and 509 deletions
|
|
@ -27,10 +27,9 @@ in {
|
|||
user = "z2m";
|
||||
password = "!secret z2m_pass";
|
||||
server = let
|
||||
utsuho = access.nixosFor "utsuho";
|
||||
mqttHost = access.getHostnameFor "utsuho" "lan";
|
||||
url = access.proxyUrlFor { serviceName = "mosquitto"; scheme = "mqtt"; };
|
||||
in mkIf (!config.services.mosquitto.enable) (
|
||||
assert utsuho.services.mosquitto.enable; mkAlmostDefault "mqtt://${mqttHost}:1883"
|
||||
mkAlmostDefault url
|
||||
);
|
||||
};
|
||||
homeassistant = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue