summaryrefslogtreecommitdiff
path: root/modules/sshd.nix
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2026-08-31 11:06:04 -0700
committerKleidi Bujari <mail@4kb.net>2026-08-31 11:06:04 -0700
commita2aa95edfd3fb679a1d9100af3d856c7a1711673 (patch)
tree3d71b900648b030e1d4a0f966a7a90b012ed2153 /modules/sshd.nix
parent55dd84d67da8fb6e70aed7b921d05b66748546e1 (diff)
downloaddepot-a2aa95edfd3fb679a1d9100af3d856c7a1711673.tar.gz
depot-a2aa95edfd3fb679a1d9100af3d856c7a1711673.tar.bz2
depot-a2aa95edfd3fb679a1d9100af3d856c7a1711673.zip
[nixos/sshd] fix dnssd config when publish is not enabled
Diffstat (limited to 'modules/sshd.nix')
-rw-r--r--modules/sshd.nix16
1 files 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
+ '';
+ };
};
}