mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
6afb255d97
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
33 lines
886 B
Nix
33 lines
886 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
{
|
|
options.programs.kdeconnect = {
|
|
enable = mkEnableOption ''
|
|
kdeconnect.
|
|
|
|
Note that it will open the TCP and UDP port from
|
|
1714 to 1764 as they are needed for it to function properly.
|
|
You can use the {option}`package` to use
|
|
`gnomeExtensions.gsconnect` as an alternative
|
|
implementation if you use Gnome
|
|
'';
|
|
package = mkPackageOption pkgs [ "plasma5Packages" "kdeconnect-kde" ] {
|
|
example = "gnomeExtensions.gsconnect";
|
|
};
|
|
};
|
|
config =
|
|
let
|
|
cfg = config.programs.kdeconnect;
|
|
in
|
|
mkIf cfg.enable {
|
|
environment.systemPackages = [
|
|
cfg.package
|
|
pkgs.sshfs
|
|
];
|
|
networking.firewall = rec {
|
|
allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
|
|
allowedUDPPortRanges = allowedTCPPortRanges;
|
|
};
|
|
};
|
|
}
|