diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-09-27 22:07:56 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-09-27 22:08:31 -0700 |
| commit | e037e164c5c45ff33525d0c8575e8d9e0315ac7b (patch) | |
| tree | d350808fdb003a196b5c31b6bd2ad5c77345e0aa /nix/ssh.nix | |
| parent | 4072628986ccb63a8107e58a6aa35dc6056ded4b (diff) | |
move nix modules
Diffstat (limited to 'nix/ssh.nix')
| -rw-r--r-- | nix/ssh.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nix/ssh.nix b/nix/ssh.nix new file mode 100644 index 0000000..d58a2a1 --- /dev/null +++ b/nix/ssh.nix @@ -0,0 +1,15 @@ +{...}:{ + services.fail2ban.enable = true; + + services.openssh = { + enable = true; + authorizedKeysInHomedir = false; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = [ "kassouni" "git" ]; + KbdInteractiveAuthentication = false; + PubkeyAuthentication = true; + }; + }; +} |