nixos/modules/desktop/apps/kdeconnect/default.nix

25 lines
561 B
Nix
Raw Normal View History

2023-07-11 21:41:24 +04:00
{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.desktop.apps.kdeconnect;
in
{
options.modules.desktop.apps.kdeconnect = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-11 21:41:24 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-07-11 21:46:23 +04:00
#users.users.sako.packages = with pkgs; [
# kdeconnect
#];
programs.kdeconnect.enable = true;
2023-07-15 18:23:02 +04:00
networking.firewall = {
2023-07-15 18:22:41 +04:00
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
2023-07-11 21:41:24 +04:00
};
}