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 + }; + }; +}