at 24.11-pre 867 B view raw
1{ config, pkgs, lib, ... }: 2{ 3 options.programs.kdeconnect = { 4 enable = lib.mkEnableOption '' 5 kdeconnect. 6 7 Note that it will open the TCP and UDP port from 8 1714 to 1764 as they are needed for it to function properly. 9 You can use the {option}`package` to use 10 `gnomeExtensions.gsconnect` as an alternative 11 implementation if you use Gnome 12 ''; 13 package = lib.mkPackageOption pkgs [ "plasma5Packages" "kdeconnect-kde" ] { 14 example = "gnomeExtensions.gsconnect"; 15 }; 16 }; 17 config = 18 let 19 cfg = config.programs.kdeconnect; 20 in 21 lib.mkIf cfg.enable { 22 environment.systemPackages = [ 23 cfg.package 24 ]; 25 networking.firewall = rec { 26 allowedTCPPortRanges = [ { from = 1714; to = 1764; } ]; 27 allowedUDPPortRanges = allowedTCPPortRanges; 28 }; 29 }; 30}