mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
16 lines
323 B
Nix
16 lines
323 B
Nix
{ config, lib, ... }:
|
|
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; }];
|
|
};
|
|
}
|