nixos/avahi: rename remaining config options

services.avahi.nssmdns got split into services.avahi.nssmdns{4,6},
nothing should access the old alias anymore so there's no eval warnings.

Reported in https://github.com/NixOS/nixpkgs/pull/258424#issuecomment-1849428869
This commit is contained in:
Florian Klink 2023-12-11 09:33:11 +02:00
parent e97b3e4186
commit 1c09cb43ce
5 changed files with 5 additions and 5 deletions

View file

@ -272,7 +272,7 @@ in
users.groups.avahi = { };
system.nssModules = optional cfg.nssmdns pkgs.nssmdns;
system.nssModules = optional (cfg.nssmdns4 || cfg.nssmdns6) pkgs.nssmdns;
system.nssDatabases.hosts = let
mdnsMinimal = if (cfg.nssmdns4 && cfg.nssmdns6) then
"mdns_minimal"

View file

@ -16,7 +16,7 @@ import ./make-test-python.nix {
cfg = { ... }: {
services.avahi = {
enable = true;
nssmdns = true;
nssmdns4 = true;
publish.addresses = true;
publish.domain = true;
publish.enable = true;

View file

@ -16,7 +16,7 @@ in {
# substitute server which requires Avahi.
services.avahi = {
enable = true;
nssmdns = true;
nssmdns4 = true;
publish = {
enable = true;
userServices = true;

View file

@ -37,7 +37,7 @@ buildGoModule rec {
longDescription = ''
Requires having:
* Elgato's Keylight paired to local wifi network.
* Service avahi with nssmdns enabled.
* Service avahi with nssmdns4 enabled.
'';
license = licenses.mit;
homepage = "https://github.com/mschneider82/keylight-control";

View file

@ -42,7 +42,7 @@ in stdenv.mkDerivation {
hostname resolvable:
services.avahi = {
enable = true;
nssmdns = true;
nssmdns4 = true;
};'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ artuuge ];