Files
.github
.vscode
docs
hydra
keys
lib
modules
autopull.nix
base.nix
boot.nix
docker.nix
endlessh.nix
fail2ban.nix
generators.nix
kub_net.nix
libs.nix
locale.nix
nix.nix
openssh.nix
pam-fingerprint-swap.nix
plocate.nix
programs.nix
update.nix
yubikey.nix
pkgs
systems
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
nix-dotfiles/modules/endlessh.nix
2024-04-10 19:11:09 -04:00

14 lines
316 B
Nix

{ config, lib, ... }:
{
config = {
services = {
endlessh-go = lib.mkIf (!builtins.elem 22 config.services.openssh.ports) {
enable = lib.mkDefault true;
port = 22;
};
};
networking.firewall = lib.mkIf config.services.endlessh-go.enable { allowedTCPPorts = [ 22 ]; };
};
}