1
0
Fork 0
nix-configuration/modules/apps/kdeconnect.nix

36 lines
548 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-03-22 22:18:38 +00:00
let
cfg = config.host.apps.kdeconnect;
2024-03-22 22:18:38 +00:00
in
with lib;
{
options = {
host.apps.kdeconnect.enable = mkEnableOption (mdDoc "Enables KDE Connect");
};
2024-03-22 22:18:38 +00:00
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ gnomeExtensions.gsconnect ];
2024-03-22 22:18:38 +00:00
networking.firewall = {
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedUDPPortRanges = [
{
from = 1714;
to = 1764;
}
];
};
};
}