mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
29 lines
537 B
Nix
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;
|
|
};
|
|
};
|
|
}
|