mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
16 lines
337 B
Nix
16 lines
337 B
Nix
{ pkgs, config, lib, inputs, ... }:
|
|
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; }];
|
|
};
|
|
}
|