dotfiles/modules/services/kdeconnect.nix

25 lines
460 B
Nix
Raw Normal View History

2022-07-15 13:11:54 +02:00
{ config
, lib
, ...
}:
with lib;
2021-11-08 15:44:21 +01:00
let
ports = {
from = 1714;
to = 1764;
};
2022-07-15 13:11:54 +02:00
cfg = config.my.services.kdeconnect;
2022-02-07 15:30:54 +01:00
in
{
2022-10-15 20:00:09 +02:00
options.my.services.kdeconnect.enable = mkEnableOption "kdeconnect";
2022-07-15 13:11:54 +02:00
2022-08-20 14:16:13 +02:00
config = mkIf cfg.enable {
home-manager.users.moritz.services.kdeconnect.enable = mkIf (!config.my.programs.gnome.enable) true;
2022-07-15 13:11:54 +02:00
networking.firewall = {
allowedTCPPortRanges = [ ports ];
allowedUDPPortRanges = [ ports ];
};
2021-11-08 15:44:21 +01:00
};
}