deploy mqtt
This commit is contained in:
parent
628bf11cdb
commit
dbd975c463
|
@ -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" ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue