Skip to content

Commit 8ed94b5

Browse files
authored
nixos/mosh: make package overridable (#383643)
1 parent 4f2c917 commit 8ed94b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nixos/modules/programs/mosh.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ in
1313
{
1414
options.programs.mosh = {
1515
enable = lib.mkEnableOption "mosh";
16+
package = lib.mkPackageOption pkgs "mosh" { };
1617
openFirewall = lib.mkEnableOption "" // {
1718
description = "Whether to automatically open the necessary ports in the firewall.";
1819
default = true;
@@ -29,7 +30,7 @@ in
2930
};
3031

3132
config = lib.mkIf cfg.enable {
32-
environment.systemPackages = [ pkgs.mosh ];
33+
environment.systemPackages = [ cfg.package ];
3334
networking.firewall.allowedUDPPortRanges = lib.optional cfg.openFirewall {
3435
from = 60000;
3536
to = 61000;

0 commit comments

Comments
 (0)