Files

24 lines
504 B
Nix
Raw Permalink Normal View History

2026-08-20 22:03:24 +02:00
{
flake.modules.nixos.endlessh = {
config,
lib,
...
}:
with lib; let
cfg = config.mySystem.services.endlessh;
in {
options.mySystem.services.endlessh = {
enable = mkEnableOption "Enables endlessh.";
port = mkOption {
type = types.port;
default = 2222;
example = 22;
};
};
config.services.endlessh-go = mkIf cfg.enable {
inherit (cfg) enable port;
openFirewall = true;
};
};
}