mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 19:00:14 +00:00
initial refactoring
This commit is contained in:
33
platforms/nixos/modules/nmasur/presets/services/avahi.nix
Normal file
33
platforms/nixos/modules/nmasur/presets/services/avahi.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.services.avahi;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.presets.services.avahi.enable = lib.mkEnableOption "Avahi DNS service discovery";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# DNS service discovery
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
domainName = "local";
|
||||
ipv6 = false; # Should work either way
|
||||
# Resolve local hostnames using Avahi DNS
|
||||
nssmdns4 = true;
|
||||
publish = {
|
||||
enable = true;
|
||||
addresses = true;
|
||||
domain = true;
|
||||
workstation = true;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user