mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
meta/ports: Separate tcp and udp lists to avoid false conflicts
This commit is contained in:
parent
b51d0d095d
commit
e288bb2bf3
19 changed files with 61 additions and 32 deletions
|
|
@ -3,11 +3,18 @@
|
|||
options.custom.services.resolved.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.services.resolved.enable {
|
||||
meta.ports.list = [
|
||||
53
|
||||
5353
|
||||
5355
|
||||
];
|
||||
meta.ports =
|
||||
let
|
||||
ports = [
|
||||
53
|
||||
5353
|
||||
5355
|
||||
];
|
||||
in
|
||||
{
|
||||
tcp.list = ports;
|
||||
udp.list = ports;
|
||||
};
|
||||
|
||||
services.resolved.enable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue