Add uniqueness check for ports

Credit to https://lorenzbischof.ch/posts/detect-port-conflicts-in-nixos-services/
This commit is contained in:
SebastianStork 2025-06-14 01:13:37 +02:00
parent a4c3e2a829
commit 232c9aa946
21 changed files with 110 additions and 12 deletions

View file

@ -40,6 +40,11 @@ in
}
];
meta.ports.list = [
cfg.syncPort
cfg.gui.port
];
services.syncthing = {
enable = true;