typioca: 2.7.0 -> 2.8.0
[NixPkgs.git] / nixos / modules / programs / sharing.nix
blob9ab51859dc51df268886eacc2bd32696847d54a0
1 { config, pkgs, lib, ... }:
2 with lib;
4   options.programs.sharing = {
5     enable = mkEnableOption (lib.mdDoc ''
6       sharing, a CLI tool for sharing files.
8       Note that it will opens the 7478 port for TCP in the firewall, which is needed for it to function properly
9     '');
10   };
11   config =
12     let
13       cfg = config.programs.sharing;
14     in
15       mkIf cfg.enable {
16         environment.systemPackages = [ pkgs.sharing ];
17         networking.firewall.allowedTCPPorts = [ 7478 ];
18       };