nixos-configuration/modules/kdeconnect.nix
Jakob Lechner 2f1fc9a4f0
Move kdeconnect to system-wide config
So that the firewall configuration is at the same place.
2022-05-20 10:10:31 +00:00

12 lines
278 B
Nix

{ config, lib, pkgs, ... }:
let portRange = {
from = 1714;
to = 1764;
};
in
lib.mkIf config.myConfig.gui.enable {
programs.kdeconnect.enable = true;
networking.firewall.allowedTCPPortRanges = [ portRange ];
networking.firewall.allowedUDPPortRanges = [ portRange ];
}