mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
21 lines
375 B
Nix
21 lines
375 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.custom.services.resolved.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.services.resolved.enable {
|
|
meta.ports =
|
|
let
|
|
ports = [
|
|
53
|
|
5353
|
|
5355
|
|
];
|
|
in
|
|
{
|
|
tcp.list = ports;
|
|
udp.list = ports;
|
|
};
|
|
|
|
services.resolved.enable = true;
|
|
};
|
|
}
|