Switch to Avahi for mDNS
This commit is contained in:
parent
7ec05c67bb
commit
e288bd899e
1 changed files with 16 additions and 2 deletions
18
base.nix
18
base.nix
|
@ -165,10 +165,24 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
connectionConfig."connection.mdns" = "yes";
|
connectionConfig."connection.mdns" = "yes";
|
||||||
};
|
};
|
||||||
firewall.allowedUDPPorts = [ 5353 ]; # mDNS
|
|
||||||
tempAddresses = "disabled";
|
tempAddresses = "disabled";
|
||||||
};
|
};
|
||||||
services.resolved.enable = true;
|
# Config for Avahi mDNS service
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
wideArea = false;
|
||||||
|
ipv6 = true;
|
||||||
|
domainName = "vsinerva.fi";
|
||||||
|
browseDomains = [ "vsinerva.fi" ];
|
||||||
|
nssmdns4 = true;
|
||||||
|
nssmdns6 = true;
|
||||||
|
openFirewall = true;
|
||||||
|
publish = {
|
||||||
|
enable = true;
|
||||||
|
addresses = true;
|
||||||
|
domain = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
users.mutableUsers = false; # Force all user management to happen throught nix-files
|
users.mutableUsers = false; # Force all user management to happen throught nix-files
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue