add firewall exceptions for kdeconnect

This commit is contained in:
Moritz Böhme 2021-11-08 15:44:21 +01:00
parent d45cdff796
commit 424afe3c83
2 changed files with 14 additions and 3 deletions

View file

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
let
ports = {
from = 1714;
to = 1764;
};
in {
home-manager.users.moritz.services = { kdeconnect.enable = true; };
networking.firewall = {
allowedTCPPortRanges = [ ports ];
allowedUDPPortRanges = [ ports ];
};
}