mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-27 08:44:52 +00:00
26 lines
519 B
Nix
26 lines
519 B
Nix
{ config, lib, ... }: {
|
|
|
|
config = lib.mkIf config.physical {
|
|
|
|
networking.useDHCP = true;
|
|
|
|
networking.firewall.allowPing = lib.mkIf config.server true;
|
|
|
|
# DNS service discovery
|
|
services.avahi = {
|
|
enable = true;
|
|
domainName = "local";
|
|
ipv6 = false; # Should work either way
|
|
# Resolve local hostnames using Avahi DNS
|
|
nssmdns = true;
|
|
publish = {
|
|
enable = true;
|
|
addresses = true;
|
|
domain = true;
|
|
workstation = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|