mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
9536169074
They contain no useful information and increase the length of the autogenerated options documentation. See discussion in #18816.
26 lines
481 B
Nix
26 lines
481 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.programs.mosh;
|
|
|
|
in
|
|
{
|
|
options.programs.mosh = {
|
|
enable = mkOption {
|
|
description = ''
|
|
Whether to enable mosh. Note, this will open ports in your firewall!
|
|
'';
|
|
default = false;
|
|
type = lib.types.bool;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [ mosh ];
|
|
networking.firewall.allowedUDPPortRanges = [ { from = 60000; to = 61000; } ];
|
|
};
|
|
}
|