snowfield/modules/mosh/default.nix

17 lines
323 B
Nix
Raw Normal View History

2024-03-30 20:18:12 +01:00
{ config, lib, ... }:
2021-12-25 16:37:08 +01:00
let
cfg = config.luj.programs.mosh;
in
with lib;
{
options.luj.programs.mosh = {
enable = mkEnableOption "Enable mosh program";
};
config = mkIf cfg.enable
{
programs.mosh.enable = true;
networking.firewall.allowedUDPPortRanges = [{ from = 60000; to = 61000; }];
};
}