forked from CCCHH/nix-infra
Add mqtt server (mosquitto)
The config was based on the exsisting mosquitto setup.
This commit is contained in:
parent
8a2d406d4e
commit
b30952a049
5 changed files with 81 additions and 0 deletions
20
config/hosts/mqtt/networking.nix
Normal file
20
config/hosts/mqtt/networking.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
interfaces.net0 = {
|
||||
ipv4.addresses = [ {
|
||||
address = "10.31.208.14";
|
||||
prefixLength = 23;
|
||||
} ];
|
||||
};
|
||||
defaultGateway = "10.31.208.1";
|
||||
nameservers = [
|
||||
"10.31.210.1"
|
||||
];
|
||||
};
|
||||
systemd.network.links."10-net0" = {
|
||||
matchConfig.MACAddress = "BC:24:11:48:85:73";
|
||||
linkConfig.Name = "net0";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue