.github
.vscode
docs
hydra
keys
modules
base.nix
boot.nix
docker.nix
endlessh.nix
fail2ban.nix
flake-update-service.nix
libs.nix
locale.nix
nix.nix
nom.patch
openssh.nix
pam-fingerprint-swap.nix
programs.nix
update.nix
systems
users
.envrc
.gitignore
.sops.yaml
flake.lock
flake.nix
treefmt.toml
14 lines
316 B
Nix
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 ]; };
|
|
};
|
|
}
|