diff options
| author | Fuwn <[email protected]> | 2024-10-01 06:02:50 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-01 06:02:50 -0700 |
| commit | fcddd3ba06088e235243d41395e40fd9e0107a76 (patch) | |
| tree | 8b4fabd85315ec93a09842a2123a2e6e16583c75 /modules/pc/software/access/ssh.nix | |
| parent | modules: move shared i18n to pc (diff) | |
| download | nixos-config-fcddd3ba06088e235243d41395e40fd9e0107a76.tar.xz nixos-config-fcddd3ba06088e235243d41395e40fd9e0107a76.zip | |
modules: move shared pc modules from desktop to pc
Diffstat (limited to 'modules/pc/software/access/ssh.nix')
| -rw-r--r-- | modules/pc/software/access/ssh.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/pc/software/access/ssh.nix b/modules/pc/software/access/ssh.nix new file mode 100644 index 0000000..b514049 --- /dev/null +++ b/modules/pc/software/access/ssh.nix @@ -0,0 +1,11 @@ +{ lib, config, ... }: +{ + programs.ssh.startAgent = false; + security.pam.sshAgentAuth.enable = true; + + services.fail2ban.jails.sshd.settings = { + enabled = true; + filter = "sshd[mode=aggressive]"; + port = lib.strings.concatStringsSep "," (map toString config.services.openssh.ports); + }; +} |