Files
TheaninovOS/modules/nixos/shell/kde-connect.nix
2025-05-04 12:57:55 +02:00

29 lines
537 B
Nix

{
config,
lib,
username,
...
}:
let
cfg = config.shell.components.kde-connect;
in
{
options.shell.components.kde-connect = {
enable = lib.mkEnableOption (lib.mdDoc "Enable a pre-configured kde connect setup");
};
config = lib.mkIf cfg.enable {
home-manager.users.${username}.services.kdeconnect.enable = true;
networking.firewall = rec {
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedUDPPortRanges = allowedTCPPortRanges;
};
};
}