mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Credit to https://lorenzbischof.ch/posts/detect-port-conflicts-in-nixos-services/
14 lines
260 B
Nix
14 lines
260 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.custom.services.resolved.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.services.resolved.enable {
|
|
meta.ports.list = [
|
|
53
|
|
5353
|
|
5355
|
|
];
|
|
|
|
services.resolved.enable = true;
|
|
};
|
|
}
|