post_install() { cat <<-EOF Start homebridge + ui with systemd: $ systemctl enable --now homebridge Caveats: 1) /usr/bin/hb-service places files all over the system, and it will also modify /etc/sudoers. It is also capable of installing an alternative binary of Node.js. It is recommended to *never* use it. 2) Installing or upgrading plugins from the web ui invokes npm install globally (/usr/lib/node_modules). You can alternatively package plugins as AUR packages. Sticking with verified plugins can also provide a higher level of security. See: https://github.com/homebridge/homebridge/wiki/Verified-Plugins 3) To give permissions to the web ui to poweroff/reboot the machine and install plugins, create a drop-in file in /etc/sudoers.d similar to: homebridge ALL=(ALL) NOPASSWD:SETENV: /usr/bin/npm, /usr/bin/shutdown, /usr/local/bin/npm 4) The web ui runs commands with sudo in various places. You have been warned. 5) It is recommended to run homebridge with a supported Node.js version. Currently nodejs-lts-jod (Node.js 22) is the recommended version. Node 23 is not working with homebridge right now. 6) To use systemd-resolved as the mDNS resolver, set up systemd-resolved mDNS and then follow these instructions: https://github.com/homebridge/homebridge/wiki/mDNS-Options#systemd-resolved-linux-only-experimental EOF } post_upgrade() { post_install }