tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mosh program: init
Aneesh Agrawal
9 years ago
77a4bd1a
99fd109a
+27
2 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
programs
mosh.nix
+1
nixos/modules/module-list.nix
···
71
71
./programs/kbdlight.nix
72
72
./programs/light.nix
73
73
./programs/man.nix
74
74
+
./programs/mosh.nix
74
75
./programs/nano.nix
75
76
./programs/screen.nix
76
77
./programs/shadow.nix
+26
nixos/modules/programs/mosh.nix
···
1
1
+
{ config, lib, pkgs, ... }:
2
2
+
3
3
+
with lib;
4
4
+
5
5
+
let
6
6
+
7
7
+
cfg = config.programs.mosh;
8
8
+
9
9
+
in
10
10
+
{
11
11
+
options.programs.mosh = {
12
12
+
enable = mkOption {
13
13
+
description = ''
14
14
+
Whether to enable mosh. Note, this will open ports in your firewall!
15
15
+
'';
16
16
+
default = false;
17
17
+
example = true;
18
18
+
type = lib.types.bool;
19
19
+
};
20
20
+
};
21
21
+
22
22
+
config = mkIf cfg.enable {
23
23
+
environment.systemPackages = with pkgs; [ mosh ];
24
24
+
networking.firewall.allowedUDPPortRanges = [ { from = 60000; to = 61000; } ];
25
25
+
};
26
26
+
}