added wireguard

This commit is contained in:
Vivian 2022-05-06 17:41:05 +02:00
parent e801865bf8
commit fd073f26ad
10 changed files with 204 additions and 29 deletions

View file

@ -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 = {