Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/sharing: init

Co-Authored-By: fee1-dead <ent3rm4n@gmail.com>

authored by ChaosAttractor fee1-dead and committed by pennae b0e773ad 4f706834

+31
+9
nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
··· 152 152 are met, or not met. 153 153 </para> 154 154 </listitem> 155 + <listitem> 156 + <para> 157 + <link xlink:href="https://github.com/parvardegr/sharing">sharing</link>, 158 + a command-line tool to share directories and files from the 159 + CLI to iOS and Android devices without the need of an extra 160 + client app. Available as 161 + <link linkend="opt-programs.sharing.enable">programs.sharing</link>. 162 + </para> 163 + </listitem> 155 164 </itemizedlist> 156 165 </section> 157 166 <section xml:id="sec-release-23.05-incompatibilities">
+2
nixos/doc/manual/release-notes/rl-2305.section.md
··· 48 48 49 49 - [autosuspend](https://github.com/languitar/autosuspend), a python daemon that suspends a system if certain conditions are met, or not met. 50 50 51 + - [sharing](https://github.com/parvardegr/sharing), a command-line tool to share directories and files from the CLI to iOS and Android devices without the need of an extra client app. Available as [programs.sharing](#opt-programs.sharing.enable). 52 + 51 53 ## Backward Incompatibilities {#sec-release-23.05-incompatibilities} 52 54 53 55 <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
+1
nixos/modules/module-list.nix
··· 223 223 ./programs/seahorse.nix 224 224 ./programs/sedutil.nix 225 225 ./programs/shadow.nix 226 + ./programs/sharing.nix 226 227 ./programs/singularity.nix 227 228 ./programs/skim.nix 228 229 ./programs/slock.nix
+19
nixos/modules/programs/sharing.nix
··· 1 + { config, pkgs, lib, ... }: 2 + with lib; 3 + { 4 + options.programs.sharing = { 5 + enable = mkEnableOption (lib.mdDoc '' 6 + sharing, a CLI tool for sharing files. 7 + 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 + }; 19 + }