add firewall exceptions for kdeconnect

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