feat: remove mosquitto
Remove mosquitto including mqtt Home Assistant integration since I've stopped using any services that require it.
This commit is contained in:
parent
4b3096f05b
commit
029b83ef4e
|
@ -21,7 +21,6 @@ in with builtins; {
|
||||||
# ./services/kodi.nix
|
# ./services/kodi.nix
|
||||||
./services/jellyfin.nix
|
./services/jellyfin.nix
|
||||||
./services/etebase.nix
|
./services/etebase.nix
|
||||||
./services/mosquitto.nix
|
|
||||||
./services/genie.nix
|
./services/genie.nix
|
||||||
./services/home-assistant
|
./services/home-assistant
|
||||||
./services/esphome.nix
|
./services/esphome.nix
|
||||||
|
@ -89,7 +88,6 @@ in with builtins; {
|
||||||
"photos.felschr.com"
|
"photos.felschr.com"
|
||||||
"books.felschr.com"
|
"books.felschr.com"
|
||||||
"news.felschr.com"
|
"news.felschr.com"
|
||||||
"mqtt.felschr.com"
|
|
||||||
"etebase.felschr.com"
|
"etebase.felschr.com"
|
||||||
"paperless.felschr.com"
|
"paperless.felschr.com"
|
||||||
];
|
];
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -18,8 +18,6 @@ in {
|
||||||
"restic/password.age".publicKeys = [ felschr home-pc home-server pilot1 ];
|
"restic/password.age".publicKeys = [ felschr home-pc home-server pilot1 ];
|
||||||
"smtp.age".publicKeys = [ felschr home-pc home-server ];
|
"smtp.age".publicKeys = [ felschr home-pc home-server ];
|
||||||
"samba.age".publicKeys = [ felschr home-pc home-server ];
|
"samba.age".publicKeys = [ felschr home-pc home-server ];
|
||||||
"mqtt/hass.age".publicKeys = [ felschr home-pc home-server ];
|
|
||||||
"mqtt/tasmota.age".publicKeys = [ felschr home-pc home-server ];
|
|
||||||
"cloudflare.age".publicKeys = [ felschr home-pc home-server ];
|
"cloudflare.age".publicKeys = [ felschr home-pc home-server ];
|
||||||
"etebase-server.age".publicKeys = [ felschr home-pc home-server ];
|
"etebase-server.age".publicKeys = [ felschr home-pc home-server ];
|
||||||
"calibre-web/htpasswd.age".publicKeys = [ felschr home-pc home-server ];
|
"calibre-web/htpasswd.age".publicKeys = [ felschr home-pc home-server ];
|
||||||
|
|
|
@ -4,7 +4,6 @@ with pkgs;
|
||||||
|
|
||||||
let
|
let
|
||||||
port = config.services.home-assistant.config.http.server_port;
|
port = config.services.home-assistant.config.http.server_port;
|
||||||
mqttPort = 1883;
|
|
||||||
geniePort = 3232;
|
geniePort = 3232;
|
||||||
in {
|
in {
|
||||||
# just installed for ConBee firmware updates
|
# just installed for ConBee firmware updates
|
||||||
|
@ -30,7 +29,6 @@ in {
|
||||||
extraComponents = [
|
extraComponents = [
|
||||||
"default_config"
|
"default_config"
|
||||||
"otp"
|
"otp"
|
||||||
"mqtt"
|
|
||||||
"esphome"
|
"esphome"
|
||||||
"homekit_controller"
|
"homekit_controller"
|
||||||
"fritz"
|
"fritz"
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
with pkgs;
|
|
||||||
|
|
||||||
let
|
|
||||||
port = 1883;
|
|
||||||
wsPort = 9001;
|
|
||||||
|
|
||||||
mkSecret = file: {
|
|
||||||
inherit file;
|
|
||||||
owner = "mosquitto";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
age.secrets = {
|
|
||||||
mqtt-felix = mkSecret ../secrets/mqtt/felix.age;
|
|
||||||
mqtt-birgit = mkSecret ../secrets/mqtt/birgit.age;
|
|
||||||
mqtt-hass = mkSecret ../secrets/mqtt/hass.age;
|
|
||||||
mqtt-tasmota = mkSecret ../secrets/mqtt/tasmota.age;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx = {
|
|
||||||
virtualHosts."mqtt.felschr.com" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:${toString wsPort}";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ port ];
|
|
||||||
|
|
||||||
services.mosquitto = {
|
|
||||||
enable = true;
|
|
||||||
listeners = [{
|
|
||||||
port = port;
|
|
||||||
users = {
|
|
||||||
"hass" = {
|
|
||||||
acl = [ "readwrite homeassistant/#" "readwrite tasmota/#" ];
|
|
||||||
hashedPasswordFile = config.age.secrets.mqtt-hass.path;
|
|
||||||
};
|
|
||||||
"tasmota" = {
|
|
||||||
acl = [ "readwrite tasmota/#" "readwrite homeassistant/#" ];
|
|
||||||
hashedPasswordFile = config.age.secrets.mqtt-tasmota.path;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue