aboutsummaryrefslogtreecommitdiff
path: root/nix/ssh.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-10-23 14:50:17 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-10-23 14:50:17 -0700
commit15ec12896112df04665ff2b4b2a945c9f62d8188 (patch)
tree525963644d867b0d5cd1b90ef145db490e0da2a8 /nix/ssh.nix
parentdb16d1d40b22c2502659fdb92014f41129896b61 (diff)
fmt
Diffstat (limited to 'nix/ssh.nix')
-rw-r--r--nix/ssh.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/nix/ssh.nix b/nix/ssh.nix
index d58a2a1..abf662a 100644
--- a/nix/ssh.nix
+++ b/nix/ssh.nix
@@ -1,4 +1,4 @@
-{...}:{
+{ ... }: {
services.fail2ban.enable = true;
services.openssh = {
@@ -7,7 +7,10 @@
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
- AllowUsers = [ "kassouni" "git" ];
+ AllowUsers = [
+ "kassouni"
+ "git"
+ ];
KbdInteractiveAuthentication = false;
PubkeyAuthentication = true;
};