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

@ -1,9 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ ./dunst ./agenix.nix ./diskstation ./picom.nix ]; imports = [ ./dunst ./agenix.nix ./diskstation ./picom.nix ./kdeconnect.nix ];
home-manager.users.moritz.services = { kdeconnect.enable = true; };
services = { services = {
printing.enable = true; printing.enable = true;

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 ];
};
}