Set avahi's publish options in whichever spelling nixpkgs has #23

Merged
arne merged 1 commit from fix-avahi-rename into main 2026-11-06 16:59:42 +01:00
Owner

Evaluating the ISO's NixOS config on main fails with The option `services.avahi.settings' does not exist (from nix/remote.nix).

Cause. 93531b5 ("Evaluate without warnings") switched remote.nix from services.avahi.publish.* to services.avahi.settings.publish.* to match a newer nixpkgs. fjordxy's own locked nixpkgs is older than that rename, so the new names don't exist there. Anything that evaluates the mdns profile against the lock fails, the ISO included.

Fix. remote.nix checks options.services.avahi ? settings and sets the publish options in whichever form is declared. Consumers bring their own nixpkgs, which can be on either side of the rename, so remote.nix should handle both even after the lock moves. The check mirrors the existing identity guard in the same file. Behaviour doesn't change: publishing, addresses and workstation are all on, each as an mkDefault.

Verified

  • Locked nixpkgs: the ISO's NixOS config (with remote.mdns.enable) evaluates to a toplevel drv. services.avahi.publish is enable/addresses/workstation = true, with no avahi warnings.
  • Newer nixpkgs (one that has the rename): a minimal system with remote.nix gets settings.publish with disable-publishing = false, publish-addresses = true and publish-workstation = true, with no avahi warnings.

Separate from #22 (dev-config recursion).

🤖 Generated with Claude Code

Evaluating the ISO's NixOS config on main fails with ``The option `services.avahi.settings' does not exist`` (from `nix/remote.nix`). **Cause.** 93531b5 ("Evaluate without warnings") switched remote.nix from `services.avahi.publish.*` to `services.avahi.settings.publish.*` to match a newer nixpkgs. fjordxy's own locked nixpkgs is older than that rename, so the new names don't exist there. Anything that evaluates the mdns profile against the lock fails, the ISO included. **Fix.** remote.nix checks `options.services.avahi ? settings` and sets the publish options in whichever form is declared. Consumers bring their own nixpkgs, which can be on either side of the rename, so remote.nix should handle both even after the lock moves. The check mirrors the existing `identity` guard in the same file. Behaviour doesn't change: publishing, addresses and workstation are all on, each as an `mkDefault`. **Verified** - Locked nixpkgs: the ISO's NixOS config (with `remote.mdns.enable`) evaluates to a toplevel drv. `services.avahi.publish` is `enable/addresses/workstation = true`, with no avahi warnings. - Newer nixpkgs (one that has the rename): a minimal system with remote.nix gets `settings.publish` with `disable-publishing = false`, `publish-addresses = true` and `publish-workstation = true`, with no avahi warnings. Separate from #22 (dev-config recursion). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
93531b5 moved remote.nix to `services.avahi.settings.publish` to quiet the
rename warnings on a newer nixpkgs, but fjordxy's own pin predates the
rename, so anything evaluating the mdns profile against it — the ISO
among them — failed with "The option `services.avahi.settings' does not
exist". remote.nix now asks `options` which spelling is declared, so both
sides evaluate, and neither warns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arne merged commit 91f5d8e375 into main 2026-11-06 16:59:42 +01:00
arne deleted branch fix-avahi-rename 2026-11-06 16:59:42 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bases/fjord!23
No description provided.