dotfiles/modules/services/kdeconnect.nix

32 lines
503 B
Nix
Raw Normal View History

2022-07-15 13:11:54 +02:00
{ config
, lib
, pkgs
, ...
}:
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-07-15 13:11:54 +02:00
options.my.services.kdeconnect = {
enable = mkOption {
default = false;
type = types.bool;
example = true;
};
};
config = lib.mkIf cfg.enable {
home-manager.users.moritz.services.kdeconnect.enable = true;
networking.firewall = {
allowedTCPPortRanges = [ ports ];
allowedUDPPortRanges = [ ports ];
};
2021-11-08 15:44:21 +01:00
};
}