From dbd975c463d142c5724c77321e1a1e5593ad43d6 Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 15 Jun 2023 11:33:56 +0200 Subject: [PATCH] deploy mqtt --- nixos/hosts/hades/lucy/configuration.nix | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/nixos/hosts/hades/lucy/configuration.nix b/nixos/hosts/hades/lucy/configuration.nix index f776fe7..1df2976 100644 --- a/nixos/hosts/hades/lucy/configuration.nix +++ b/nixos/hosts/hades/lucy/configuration.nix @@ -36,9 +36,15 @@ in { system.stateVersion = "23.05"; # Did you read the comment? # Additional packages - environment.systemPackages = with pkgs; [ gcc go jq rustup trivy nuclei-latest ]; + environment.systemPackages = with pkgs; [ + gcc + go + jq + rustup + trivy + nuclei-latest + ]; - networking.firewall.allowedTCPPorts = [ ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -46,6 +52,20 @@ in { virtualisation.docker.enable = true; + services.mosquitto = { + enable = true; + listeners = [{ + acl = [ "pattern readwrite #" ]; + omitPasswordAuth = true; + settings.allow_anonymous = true; + }]; + }; + + networking.firewall = { + enable = true; + allowedTCPPorts = [ 1883 ]; + }; + users.extraUsers.laura.extraGroups = [ "wheel" "docker" ]; users.extraUsers.victor.extraGroups = [ "docker" ]; }