|
|
Line 206: |
Line 206: |
|
| |
|
| == Troubleshooting == | | == Troubleshooting == |
|
| |
| === Adding network printer "Name or service not known" ===
| |
|
| |
| {{Note|This problem is fixed in nixpkgs-unstable. Remove this section after NixOS 23.11 EOL.}}
| |
|
| |
| If CUPS complains about "''Impossible to connect to XXX.local: Name or service not known''" even if {{nixos:option|services.avahi.nssmdns}} is enabled as shown above, the reason could be that mdns does not work properly with IPv6 in your network. In such a case, switching to mdns4-only setup can help:
| |
| <syntaxhighlight lang="nix">
| |
| {
| |
| ...
| |
| services.avahi.nssmdns = false; # Use the settings from below
| |
| # settings from avahi-daemon.nix where mdns is replaced with mdns4
| |
| system.nssModules = pkgs.lib.optional (!config.services.avahi.nssmdns) pkgs.nssmdns;
| |
| system.nssDatabases.hosts = with pkgs.lib; optionals (!config.services.avahi.nssmdns) (mkMerge [
| |
| (mkBefore [ "mdns4_minimal [NOTFOUND=return]" ]) # before resolve
| |
| (mkAfter [ "mdns4" ]) # after dns
| |
| ]);
| |
| }
| |
| </syntaxhighlight>
| |
| See [https://github.com/NixOS/nixpkgs/issues/118628 this bug report] for details.
| |
|
| |
|
| === Upgrade required === | | === Upgrade required === |