added wireguard
This commit is contained in:
parent
e801865bf8
commit
fd073f26ad
10 changed files with 204 additions and 29 deletions
|
@ -4,7 +4,8 @@
|
|||
|
||||
{ config, pkgs, ... }:
|
||||
let mosquittoPort = 1883;
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
networking.hostName = "mosquitto";
|
||||
|
@ -21,11 +22,9 @@ in {
|
|||
environment.systemPackages = with pkgs; [ ];
|
||||
|
||||
services.mosquitto = {
|
||||
|
||||
enable = true;
|
||||
|
||||
listeners = [{
|
||||
port = 1883;
|
||||
port = mosquittoPort;
|
||||
settings.allow_anonymous = true;
|
||||
acl = [ "topic readwrite #" ];
|
||||
users = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue