mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 10:09:04 +02:00
Added mosh module
This commit is contained in:
parent
43fe8ad54f
commit
8103e8e236
5 changed files with 31 additions and 18 deletions
16
modules/mosh/default.nix
Normal file
16
modules/mosh/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ 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; }];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue