From 1e5eae3c2e273da7337e66edaa23dae386ff7492 Mon Sep 17 00:00:00 2001 From: matiss Date: Mon, 20 Apr 2026 15:24:07 +0000 Subject: [PATCH] add ssh server --- hosts/default/configuration.nix | 1 + modules/system/ssh.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 modules/system/ssh.nix diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index ebcba6a..a0b3730 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -18,6 +18,7 @@ ../../modules/system/fonts.nix ../../modules/system/services.nix ../../modules/system/vpn.nix + ../../modules/system/ssh.nix ]; networking.hostName = "matiss"; diff --git a/modules/system/ssh.nix b/modules/system/ssh.nix new file mode 100644 index 0000000..9d43ad3 --- /dev/null +++ b/modules/system/ssh.nix @@ -0,0 +1,14 @@ +# ========================================== +# SSH SERVER CONFIGURATION +# ========================================== +{ config, pkgs, ... }: + +{ + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = true; # Change to false once you add SSH keys + }; + }; +}