We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f2c917 commit 8ed94b5Copy full SHA for 8ed94b5
nixos/modules/programs/mosh.nix
@@ -13,6 +13,7 @@ in
13
{
14
options.programs.mosh = {
15
enable = lib.mkEnableOption "mosh";
16
+ package = lib.mkPackageOption pkgs "mosh" { };
17
openFirewall = lib.mkEnableOption "" // {
18
description = "Whether to automatically open the necessary ports in the firewall.";
19
default = true;
@@ -29,7 +30,7 @@ in
29
30
};
31
32
config = lib.mkIf cfg.enable {
- environment.systemPackages = [ pkgs.mosh ];
33
+ environment.systemPackages = [ cfg.package ];
34
networking.firewall.allowedUDPPortRanges = lib.optional cfg.openFirewall {
35
from = 60000;
36
to = 61000;
0 commit comments