From a2aa95edfd3fb679a1d9100af3d856c7a1711673 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Mon, 31 Aug 2026 11:06:04 -0700 Subject: [nixos/sshd] fix dnssd config when publish is not enabled --- modules/sshd.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/sshd.nix b/modules/sshd.nix index 9d6bc13..6afec3f 100644 --- a/modules/sshd.nix +++ b/modules/sshd.nix @@ -68,12 +68,14 @@ in "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIC4ntO9M5TO+SEWtrIT4XCdqP6UN1Hq2PKvhRIXHgaSDAAAAC3NzaDpnZW5lcmFs" ]; - environment.etc."systemd/dnssd/ssh.dnssd".text = mkIf cfg.publish '' - [Service] - Name=%H - Type=_ssh._tcp - Port=22 - TxtText=hello world - ''; + environment.etc = mkIf cfg.publish { + "systemd/dnssd/ssh.dnssd".text = '' + [Service] + Name=%H + Type=_ssh._tcp + Port=22 + TxtText=hello world + ''; + }; }; } -- cgit v1.3.1