dotfiles/modules/mosh.sys.nix

14 lines
235 B
Nix
Raw Normal View History

2023-01-13 06:42:21 +00:00
{ pkgs
, lib
, config
, ...
}: {
2023-01-13 06:42:21 +00:00
environment.systemPackages = [ pkgs.mosh ];
networking.firewall = lib.mkIf config.networking.firewall.enable {
allowedUDPPortRanges = [
{ from = 60000; to = 61000; } # mosh
];
};
}