chore: clean up after tewi

This commit is contained in:
arcnmx 2024-01-16 10:12:17 -08:00
parent 166b68492b
commit 47d1036c42
4 changed files with 17 additions and 9 deletions

View file

@ -10,8 +10,9 @@ in {
enable = mkDefault true;
user = mkDefault "root";
mqtt = {
url = mkIf config.services.mosquitto.enable (
mkDefault "tcp://localhost:1883"
url = mkDefault (if config.services.mosquitto.enable
then "tcp://localhost:1883"
else "tcp://mqtt.local.${config.networking.domain}:1883"
);
username = mkDefault "systemd";
};